From 416e5bcb962fb5f9e4b2bf7fcd234f6f60bce0b6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 30 Jun 2014 23:49:34 +0000 Subject: [PATCH] Move ms-load.php and ms-default-constants.php inclusion back to ms-settings.php to avoid breaking WP-CLI. Use require_once() to allow for ms-settings.php to be included multiple times while testing. props jeremyfelt. see #27884. git-svn-id: https://develop.svn.wordpress.org/trunk@28934 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-settings.php | 4 ++++ src/wp-settings.php | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/ms-settings.php b/src/wp-includes/ms-settings.php index da7e33f4f2..7b35e7616f 100644 --- a/src/wp-includes/ms-settings.php +++ b/src/wp-includes/ms-settings.php @@ -10,6 +10,10 @@ * @since 3.0.0 */ +/** Include Multisite initialization functions */ +require_once( ABSPATH . WPINC . '/ms-load.php' ); +require_once( ABSPATH . WPINC . '/ms-default-constants.php' ); + if ( defined( 'SUNRISE' ) ) { include_once( WP_CONTENT_DIR . '/sunrise.php' ); } diff --git a/src/wp-settings.php b/src/wp-settings.php index 060b1b14c5..65e7bf906c 100644 --- a/src/wp-settings.php +++ b/src/wp-settings.php @@ -91,9 +91,6 @@ require( ABSPATH . WPINC . '/default-filters.php' ); // Initialize multisite if enabled. if ( is_multisite() ) { require( ABSPATH . WPINC . '/ms-blogs.php' ); - /** Include Multisite initialization functions */ - require( ABSPATH . WPINC . '/ms-load.php' ); - require( ABSPATH . WPINC . '/ms-default-constants.php' ); require( ABSPATH . WPINC . '/ms-settings.php' ); } elseif ( ! defined( 'MULTISITE' ) ) { define( 'MULTISITE', false );