';
$append = '';
$class = '';
$php_warning = $data->php['old'];
if ( $php_warning ) {
$append .= sprintf(
' (%s)',
'https://wordpress.org/support/update-php/',
esc_html__( 'Help', 'query-monitor' )
);
$class = 'qm-warn';
}
echo '';
echo '' . esc_html__( 'Version', 'query-monitor' ) . ' | ';
echo '';
if ( $php_warning ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo QueryMonitor::icon( 'warning' );
}
echo esc_html( $data->php['version'] ?: esc_html__( 'Unknown', 'query-monitor' ) );
echo $append; // WPCS: XSS ok.
echo ' | ';
echo '
';
echo '';
echo 'SAPI | ';
echo '' . esc_html( $data->php['sapi'] ?: esc_html__( 'Unknown', 'query-monitor' ) ) . ' | ';
echo '
';
echo '';
echo '' . esc_html__( 'User', 'query-monitor' ) . ' | ';
if ( ! empty( $data->php['user'] ) ) {
echo '' . esc_html( $data->php['user'] ) . ' | ';
} else {
echo '' . esc_html__( 'Unknown', 'query-monitor' ) . ' | ';
}
echo '
';
foreach ( $data->php['variables'] as $key => $val ) {
echo '';
echo '' . esc_html( $key ) . ' | ';
echo '';
echo esc_html( $val );
echo ' | ';
echo '
';
}
$out = array();
foreach ( $data->php['error_levels'] as $level => $reported ) {
if ( $reported ) {
$out[] = esc_html( $level ) . ' ✓';
} else {
$out[] = '' . esc_html( $level ) . '';
}
}
$error_levels = implode( '', $out );
echo '';
echo '' . esc_html__( 'Error Reporting', 'query-monitor' ) . ' | ';
echo '';
echo esc_html( (string) $data->php['error_reporting'] );
echo self::build_toggler(); // WPCS: XSS ok;
echo '';
echo " "; // WPCS: XSS ok.
echo ' ';
echo ' | ';
echo '
';
if ( ! empty( $data->php['extensions'] ) ) {
echo '';
echo '' . esc_html__( 'Extensions', 'query-monitor' ) . ' | ';
echo '';
printf( // WPCS: XSS ok.
' %1$s %2$s ',
esc_html( number_format_i18n( count( $data->php['extensions'] ) ) ),
self::build_toggler()
);
echo '';
self::output_inner( $data->php['extensions'] );
echo ' ';
echo ' | ';
echo '
';
}
echo '';
echo '