Make WordPress Core

Changeset 36434


Ignore:
Timestamp:
02/02/2016 12:58:32 AM (9 years ago)
Author:
pento
Message:

Database: Allow loading when only the mysqlnd extension is loaded.

We do an early check for a mysql extension being loaded, but it fails if the mysqlnd extension is the only one present.

Props nexurium.

Fixes #33261.

File:
1 edited

Legend:

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

    r36413 r36434  
    134134    }
    135135
    136     if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
     136    if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! extension_loaded( 'mysqlnd' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
    137137        wp_load_translations_early();
    138138
Note: See TracChangeset for help on using the changeset viewer.