mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
Merge pull request #110 from runcommand/ensure-null
Ensure `tick_callback` is nullified when ignoring a callback
This commit is contained in:
commit
146d553729
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