mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-25 13:44:30 +00:00
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
This commit is contained in:
@@ -1474,7 +1474,7 @@ class wpdb {
|
||||
|
||||
if ( $attempt_fallback ) {
|
||||
$this->use_mysqli = false;
|
||||
$this->db_connect();
|
||||
return $this->db_connect( $allow_bail );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user