Increment hook counter when timer starts

This commit is contained in:
Daniel Bachhuber 2016-08-26 07:43:04 -07:00
parent 4365551db2
commit 664512ac8b
2 changed files with 1 additions and 1 deletions

View file

@ -135,7 +135,6 @@ class Command {
global $wpdb, $wp_filter;
foreach( Logger::$active_loggers as $logger ) {
$logger->hook_count++;
$logger->start_hook_timer();
}

View file

@ -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 );
}