diff --git a/inc/class-logger.php b/inc/class-logger.php index 4e293db..69c7fcb 100644 --- a/inc/class-logger.php +++ b/inc/class-logger.php @@ -92,11 +92,11 @@ class Logger { * Start this logger's hook timer */ public function start_hook_timer() { + $this->hooks['count']++; // Timer already running means a subhook has been called if ( ! is_null( $this->hook_start_time ) ) { $this->hook_depth++; } else { - $this->hooks['count']++; $this->hook_start_time = microtime( true ); } }