| 3 | | I've simple WP installation and I'm trying to make "my profiler" which will show executing times of all actions. I just found an issue in class.wp-scripts.php. Plugin Query monitor runs wp_register_script( 'debug-bar', false, array( 'query-monitor') ); inside init action. (it's first call of wp_register_script). Then constructor of WP_Scripts runs add_action( 'init', array( $this, 'init' ), 0 ), but action is already doing and my profiler shows warning about it ($merged_filters['init'] has reset state). |
| | 3 | I've simple WP installation and I'm trying to make "my profiler" which will show executing times of all actions. I just found an issue in class.wp-scripts.php. Plugin Query monitor runs `wp_register_script( 'debug-bar', false, array( 'query-monitor') );` inside init action. (it's first call of wp_register_script). Then constructor of WP_Scripts runs `add_action( 'init', array( $this, 'init' ), 0 )`, but action is already doing and my profiler shows warning about it (`$merged_filters['init']` has reset state). |