Only show mysql notice if mysql in version string

Closes #11254
This commit is contained in:
Mike Jolley 2016-06-27 12:23:45 +01:00
parent 3ed7e3574a
commit b1d4ce3276
1 changed files with 7 additions and 1 deletions

View File

@ -174,7 +174,13 @@ global $wpdb;
</tr>
<?php endif; ?>
<?php
if ( ! empty( $wpdb->is_mysql ) ) : ?>
if ( $wpdb->use_mysqli ) {
$ver = mysqli_get_server_info( $wpdb->dbh );
} else {
$ver = mysql_get_server_info();
}
if ( ! empty( $wpdb->is_mysql ) && stristr( $ver, 'MySQL' ) ) : ?>
<tr>
<td data-export-label="MySQL Version"><?php _e( 'MySQL Version', 'woocommerce' ); ?>:</td>
<td class="help"><?php echo wc_help_tip( __( 'The version of MySQL installed on your hosting server.', 'woocommerce' ) ); ?></td>