Bootstrap: Revert [38399] as it's broken /build/ and subsequently core.svn.wordpress.org.
The generated classmaps reference `/src/` files and operates in the assumption that the base directory is one level above `wp-settings.php`, which it isn't after our build processes are run. See #36335 Built from https://develop.svn.wordpress.org/trunk@38402 git-svn-id: http://core.svn.wordpress.org/trunk@38343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -394,12 +394,12 @@ function wp_set_lang_dir() {
|
||||
function require_wp_db() {
|
||||
global $wpdb;
|
||||
|
||||
require_once( ABSPATH . WPINC . '/wp-db.php' );
|
||||
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) )
|
||||
require_once( WP_CONTENT_DIR . '/db.php' );
|
||||
|
||||
if ( isset( $wpdb ) ) {
|
||||
if ( isset( $wpdb ) )
|
||||
return;
|
||||
}
|
||||
|
||||
$wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user