From c233a88379ff894d4b7acc1fff5e9a02200029bb Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 15 Mar 2016 03:28:26 +0000 Subject: [PATCH] WPDB: Reset connection status variables when the connection is closed. Fixes #36240. Built from https://develop.svn.wordpress.org/trunk@36997 git-svn-id: http://core.svn.wordpress.org/trunk@36964 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 64d6ca0d72..06df90572f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta3-36996'; +$wp_version = '4.5-beta3-36997'; /** * 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 6a8893ad7f..a30afa989d 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -3116,6 +3116,8 @@ class wpdb { if ( $closed ) { $this->dbh = null; + $this->ready = false; + $this->has_connected = false; } return $closed;