Make WordPress Core


Ignore:
Timestamp:
09/28/2015 01:16:29 AM (10 years ago)
Author:
pento
Message:

WPDB: Make sure we don't run sanity checks on DB dropins.

Previously, we'd run the sanity checks if is_mysql was not set to false. This caused problems for DB drop-ins that didn't define is_mysql at all. Instead, we can just check if is_mysql is empty().

Also fix some unit tests that accidently ran correctly because of the strict false === comparison.

Fixes #33501.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r34215 r34655  
    381381        $this->dbh = $wpdb->dbh;
    382382        $this->use_mysqli = $wpdb->use_mysqli;
     383        $this->is_mysql = $wpdb->is_mysql;
    383384        $this->ready = true;
    384385        $this->field_types = $wpdb->field_types;
Note: See TracChangeset for help on using the changeset viewer.