diff --git a/wp-includes/version.php b/wp-includes/version.php index 4e28b6aef3..4c20d02457 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta1-31782'; +$wp_version = '4.2-beta1-31783'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 539324091d..ae0ec7ec94 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -2805,10 +2805,12 @@ class wpdb { return false; } if ( $this->use_mysqli ) { - return mysqli_get_client_version( $this->dbh ) >= 50503; + $client_version = mysqli_get_client_info(); } else { - return mysql_get_client_version( $this->dbh ) >= 50503; + $client_version = mysql_get_client_info(); } + + return version_compare( $client_version, '5.5.3', '>=' ); } return false;