Make WordPress Core


Ignore:
Timestamp:
09/24/2015 04:29:40 AM (9 years ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r34348 r34478  
    14751475                if ( $attempt_fallback ) {
    14761476                    $this->use_mysqli = false;
    1477                     $this->db_connect();
     1477                    return $this->db_connect( $allow_bail );
    14781478                }
    14791479            }
Note: See TracChangeset for help on using the changeset viewer.