diff --git a/inc/class-command.php b/inc/class-command.php index 5869af0..8c0495c 100644 --- a/inc/class-command.php +++ b/inc/class-command.php @@ -135,7 +135,6 @@ class Command { global $wpdb, $wp_filter; foreach( Logger::$active_loggers as $logger ) { - $logger->hook_count++; $logger->start_hook_timer(); } diff --git a/inc/class-logger.php b/inc/class-logger.php index d4f32ff..d35a46c 100644 --- a/inc/class-logger.php +++ b/inc/class-logger.php @@ -59,6 +59,7 @@ class Logger { * Start this logger's hook timer */ public function start_hook_timer() { + $this->hook_count++; $this->hook_start_time = microtime( true ); }