From d6f4fc28f2a96e18f3a2e7742b7ace287122e7a7 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Wed, 26 Oct 2016 06:29:07 -0700 Subject: [PATCH] Ensure `tick_callback` is nullified when ignoring a callback --- inc/class-profiler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/class-profiler.php b/inc/class-profiler.php index 91f79ad..f643a83 100644 --- a/inc/class-profiler.php +++ b/inc/class-profiler.php @@ -322,6 +322,7 @@ class Profiler { } if ( 'runcommand\Profile\Profiler->wp_tick_profile_begin()' === $callback ) { + $this->tick_callback = null; return; }