Only hide MySQL (when is_mysql is set) if MariaDB is found in the version string.
This commit is contained in:
parent
9b2ae1827d
commit
de603974d4
|
@ -172,8 +172,15 @@ global $wpdb;
|
|||
<td class="help"><?php echo wc_help_tip( __( 'Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself. If enabled on your server, Suhosin may need to be configured to increase its data submission limits.', 'woocommerce' ) ); ?></td>
|
||||
<td><?php echo extension_loaded( 'suhosin' ) ? '<span class="dashicons dashicons-yes"></span>' : '–'; ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $wpdb->is_mysql ) ) : ?>
|
||||
<?php endif;
|
||||
|
||||
if ( $wpdb->use_mysqli ) {
|
||||
$ver = mysqli_get_server_info( $wpdb->dbh );
|
||||
} else {
|
||||
$ver = mysql_get_server_info();
|
||||
}
|
||||
|
||||
if ( ! empty( $wpdb->is_mysql ) && ! stristr( $ver, 'MariaDB' ) ) : ?>
|
||||
<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>
|
||||
|
|
Loading…
Reference in New Issue