diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php
index 53ba207203..59404e0e89 100644
|
a
|
b
|
class wpdb { |
| 704 | 704 | if ( defined( 'WP_SETUP_CONFIG' ) ) { |
| 705 | 705 | return; |
| 706 | 706 | } |
| 707 | | |
| 708 | | $this->db_connect(); |
| 709 | 707 | } |
| 710 | 708 | |
| 711 | 709 | /** |
| … |
… |
class wpdb { |
| 1981 | 1979 | * affected/selected for all other queries. Boolean false on error. |
| 1982 | 1980 | */ |
| 1983 | 1981 | public function query( $query ) { |
| | 1982 | // If we have not connected to the database yet, initialize a connection. |
| | 1983 | if ( ! $this->has_connected ) { |
| | 1984 | $this->db_connect(); |
| | 1985 | } |
| | 1986 | |
| 1984 | 1987 | if ( ! $this->ready ) { |
| 1985 | 1988 | $this->check_current_query = true; |
| 1986 | 1989 | return false; |