trace = new QM_Backtrace( array( 'ignore_hook' => array( current_filter() => true, ), ) ); return $handler; } /** * @return void */ public function dispatch() { if ( ! $this->should_dispatch() ) { return; } $switched_locale = self::switch_to_locale( get_user_locale() ); $stack = array(); $filtered_trace = $this->trace->get_filtered_trace(); $component = $this->trace->get_component(); foreach ( $filtered_trace as $i => $item ) { $stack[] = QM_Output_Html::output_filename( $item['display'], $item['file'], $item['line'] ); } ?> '; echo '
'; if ( 'unknown' !== $component->type ) { $name = ( 'plugin' === $component->type ) ? $component->context : $component->name; printf( /* translators: %s: Plugin or theme name */ esc_html__( 'This message was triggered by %s.', 'query-monitor' ), '' . esc_html( $name ) . '' ); } echo '
'; echo '' . esc_html__( 'Call stack:', 'query-monitor' ) . '
'; echo '