mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-18 06:11:48 +08:00
Ensure tick_callback
is nullified when ignoring a callback
This commit is contained in:
parent
6beadf3aa9
commit
d6f4fc28f2
1 changed files with 1 additions and 0 deletions
|
@ -322,6 +322,7 @@ class Profiler {
|
|||
}
|
||||
|
||||
if ( 'runcommand\Profile\Profiler->wp_tick_profile_begin()' === $callback ) {
|
||||
$this->tick_callback = null;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue