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:
commit
7255e4a371
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue