/home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/dispatchers
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/dispatchers/WP_Die.php (3360B)
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->id . '(' . ( $item->args ?? '' ) . ')',
$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 '
';
echo '- ' . implode( "
\n- ", $stack ) . '
'; // WPCS: XSS ok.
echo '
';
echo '
' . esc_html__( 'Query Monitor', 'query-monitor' ) . '
';
echo '
';
if ( $switched_locale ) {
self::restore_previous_locale();
}
}
/**
* @return bool
*/
public function is_active() {
if ( ! $this->trace ) {
return false;
}
if ( ! self::user_can_view() ) {
return false;
}
return true;
}
}
/**
* @param array