mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
WordPress doesn't like this last hook added to shutdown
This commit is contained in:
parent
7be192206e
commit
ff802e8de9
1 changed files with 3 additions and 1 deletions
|
@ -304,8 +304,10 @@ class Command {
|
||||||
$this->filter_depth = 1;
|
$this->filter_depth = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( 'shutdown' !== $this->focus_hook ) {
|
||||||
WP_CLI::add_wp_hook( $current_filter, array( $this, 'wp_hook_end' ), 9999 );
|
WP_CLI::add_wp_hook( $current_filter, array( $this, 'wp_hook_end' ), 9999 );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrap current filter callbacks with a timer
|
* Wrap current filter callbacks with a timer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue