Add initial unit tests for multisite's bootstrap.
props jeremyfelt. fixes #27884. Built from https://develop.svn.wordpress.org/trunk@28910 git-svn-id: http://core.svn.wordpress.org/trunk@28709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a10aff4d92
commit
4695573f51
|
@ -10,12 +10,9 @@
|
|||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
/** Include Multisite initialization functions */
|
||||
require( ABSPATH . WPINC . '/ms-load.php' );
|
||||
require( ABSPATH . WPINC . '/ms-default-constants.php' );
|
||||
|
||||
if ( defined( 'SUNRISE' ) )
|
||||
if ( defined( 'SUNRISE' ) ) {
|
||||
include_once( WP_CONTENT_DIR . '/sunrise.php' );
|
||||
}
|
||||
|
||||
/** Check for and define SUBDOMAIN_INSTALL and the deprecated VHOST constant. */
|
||||
ms_subdomain_constants();
|
||||
|
|
|
@ -91,6 +91,9 @@ 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 );
|
||||
|
|
Loading…
Reference in New Issue