Remove "MySQL" string check on version, which was preventing the MySQL version from displaying on the system status report. Version #s don't seem to include "MySQL" in them anymore so the check would prevent the block from being shown.

This commit is contained in:
Justin Shreve 2016-07-21 13:20:49 -07:00
parent f5f6245405
commit dbba5c7bbc
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ global $wpdb;
$ver = mysql_get_server_info();
}
if ( ! empty( $wpdb->is_mysql ) && stristr( $ver, 'MySQL' ) ) : ?>
if ( ! empty( $wpdb->is_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>
@ -349,7 +349,7 @@ global $wpdb;
<tr>
<td data-export-label="WC Database Prefix"><?php _e( 'Database Prefix', 'woocommerce' ); ?></td>
<td class="help">&nbsp;</td>
<td><?php
<td><?php
if ( strlen( $wpdb->prefix ) > 20 ) {
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend using a prefix with less than 20 characters. See: %s', 'woocommerce' ), esc_html( $wpdb->prefix ), '<a href="https://docs.woocommerce.com/document/completed-order-email-doesnt-contain-download-links/#section-2" target="_blank">' . __( 'How to update your database table prefix', 'woocommerce' ) . '</a>' ) . '</mark>';
} else {