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
This commit is contained in:
parent
9af79e2582
commit
c233a88379
|
@ -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.
|
||||
|
|
|
@ -3116,6 +3116,8 @@ class wpdb {
|
|||
|
||||
if ( $closed ) {
|
||||
$this->dbh = null;
|
||||
$this->ready = false;
|
||||
$this->has_connected = false;
|
||||
}
|
||||
|
||||
return $closed;
|
||||
|
|
Loading…
Reference in New Issue