Ensure tick_callback is nullified when ignoring a callback

This commit is contained in:
Daniel Bachhuber 2016-10-26 06:29:07 -07:00
parent 6beadf3aa9
commit d6f4fc28f2

View file

@ -322,6 +322,7 @@ class Profiler {
}
if ( 'runcommand\Profile\Profiler->wp_tick_profile_begin()' === $callback ) {
$this->tick_callback = null;
return;
}