Make WordPress Core

Changeset 49164


Ignore:
Timestamp:
10/15/2020 09:17:08 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Revert [49161] from the 5.5 branch.

See #50913.

File:
1 edited

Legend:

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

    r49161 r49164  
    113113    }
    114114
    115     if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! extension_loaded( 'mysqlnd' )
    116             // This runs before default constants are defined, so we can't assume WP_CONTENT_DIR is set yet
    117             && ( ( defined( 'WP_CONTENT_DIR' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) )
    118                 || ( ! file_exists( ABSPATH . 'wp-content/db.php' ) ) )
    119         ) {
     115    if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! extension_loaded( 'mysqlnd' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
    120116        require_once ABSPATH . WPINC . '/functions.php';
    121117        wp_load_translations_early();
Note: See TracChangeset for help on using the changeset viewer.