Ticket #14670: singlesite2.diff
File singlesite2.diff, 1.7 KB (added by , 12 years ago) |
---|
-
wp-includes/ms-settings.php
18 18 require( ABSPATH . WPINC . '/ms-load.php' ); 19 19 require( ABSPATH . WPINC . '/ms-default-constants.php' ); 20 20 21 if ( defined( 'SUNRISE' ) ) 22 include_once( WP_CONTENT_DIR . '/sunrise.php');21 /** Load /wp-content/sunrise.php for Multisite */ 22 wp_load_sunrise(); 23 23 24 24 /** Check for and define SUBDOMAIN_INSTALL and the deprecated VHOST constant. */ 25 25 ms_subdomain_constants(); -
wp-settings.php
90 90 define( 'MULTISITE', false ); 91 91 } 92 92 93 // Load /wp-content/sunrise.php for single site installations 94 if ( ! MULTISITE ) 95 wp_load_sunrise(); 96 93 97 // Stop most of WordPress from being loaded if we just want the basics. 94 98 if ( SHORTINIT ) 95 99 return false; … … 317 321 * @since 3.0.0 318 322 */ 319 323 do_action('wp_loaded'); 324 325 /** 326 * Load /wp-content/sunrise.php if the constant SUNRISE has been defined and the file exists, die with an error messsage if not. 327 * 328 * @since 3.2.0 329 * 330 * @uses SUNRISE constant Checks to see if it is set in order to load /wp-content/sunrise.php. 331 * @uses /wp-content/sunrise.php Loads /wp-content/sunrise.php if SUNRISE constant is defined. 332 * 333 */ 334 function wp_load_sunrise() { 335 if ( defined( 'SUNRISE' ) ) { 336 $sunrise_php = WP_CONTENT_DIR . '/sunrise.php'; 337 if ( !file_exists( $sunrise_php ) ) 338 wp_die( __( "The constant SUNRISE was defined but the file [{$sunrise_php}] does not exist." ) ); 339 else 340 include_once( $sunrise_php ); 341 } 342 } 320 343 ?>