From e1fafc56d5aee3e7085e5c03f7a488927df6407e Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 24 Sep 2015 04:29:40 +0000 Subject: [PATCH] WPDB: When attempting to fall back to `ext/mysql` in `db_connect()`, return the result of the fall back. While it doesn't affect Core, we should also be passing the `$allow_bail` parameter, for anything that uses it differently. Props markoheijnen, johnbillion. Fixes #33105. git-svn-id: https://develop.svn.wordpress.org/trunk@34478 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index c745cb2430..8e151e8c98 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -1474,7 +1474,7 @@ class wpdb { if ( $attempt_fallback ) { $this->use_mysqli = false; - $this->db_connect(); + return $this->db_connect( $allow_bail ); } } } else {