Make system status DB version display compatible with rest system status controller data. Closes #19279

This commit is contained in:
Gerhard Potgieter 2018-03-07 08:18:23 +02:00
parent 5f7b9a98db
commit 4b8a82093d
1 changed files with 1 additions and 6 deletions

View File

@ -200,12 +200,7 @@ $untested_plugins = $plugin_updates->get_untested_plugins( WC()->version, 'minor
<?php
if ( $wpdb->use_mysqli ) {
$ver = mysqli_get_server_info( $wpdb->dbh );
} else {
$ver = mysql_get_server_info(); // @codingStandardsIgnoreLine
}
if ( ! empty( $wpdb->is_mysql ) && ! stristr( $ver, 'MariaDB' ) ) :
if ( ! empty( $wpdb->is_mysql ) ) :
?>
<tr>
<td data-export-label="MySQL Version"><?php esc_html_e( 'MySQL version', 'woocommerce' ); ?>:</td>