mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
WPDB: Reset connection status variables when the connection is closed.
Fixes #36240. git-svn-id: https://develop.svn.wordpress.org/trunk@36997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -946,6 +946,9 @@ class Tests_DB extends WP_UnitTestCase {
|
||||
$this->assertTrue( $wpdb->close() );
|
||||
$this->assertFalse( $wpdb->close() );
|
||||
|
||||
$this->assertFalse( $wpdb->ready );
|
||||
$this->assertFalse( $wpdb->has_connected );
|
||||
|
||||
$wpdb->check_connection();
|
||||
|
||||
$this->assertTrue( $wpdb->close() );
|
||||
|
||||
Reference in New Issue
Block a user