Merge pull request #19281 from woocommerce/fix/19279-db-version-fatal-system-status

Dont use mysql functions directly on system status page
This commit is contained in:
Mike Jolley 2018-03-07 11:10:36 +00:00 committed by GitHub
commit 7255e4a371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>