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:
Gary Pendergast 2015-09-24 04:29:40 +00:00
parent 158aecc3ec
commit e1fafc56d5

View File

@ -1474,7 +1474,7 @@ class wpdb {
if ( $attempt_fallback ) {
$this->use_mysqli = false;
$this->db_connect();
return $this->db_connect( $allow_bail );
}
}
} else {