plugin updates
This commit is contained in:
@@ -2114,7 +2114,8 @@ class wpdb {
|
||||
* @return bool|void True if the connection is up.
|
||||
*/
|
||||
public function check_connection( $allow_bail = true ) {
|
||||
if ( ! empty( $this->dbh ) && mysqli_ping( $this->dbh ) ) {
|
||||
// Check if the connection is alive.
|
||||
if ( ! empty( $this->dbh ) && mysqli_query( $this->dbh, 'DO 1' ) !== false ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3982,12 +3983,13 @@ class wpdb {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global string $wp_version The WordPress version string.
|
||||
* @global string $required_mysql_version The required MySQL version string.
|
||||
* @return void|WP_Error
|
||||
*/
|
||||
public function check_database_version() {
|
||||
global $wp_version, $required_mysql_version;
|
||||
global $required_mysql_version;
|
||||
$wp_version = wp_get_wp_version();
|
||||
|
||||
// Make sure the server has the required MySQL version.
|
||||
if ( version_compare( $this->db_version(), $required_mysql_version, '<' ) ) {
|
||||
/* translators: 1: WordPress version number, 2: Minimum required MySQL version number. */
|
||||
|
||||
Reference in New Issue
Block a user