WordPress.org

Make WordPress Core

Ticket #27884: unit-hack.diff

File unit-hack.diff, 1.5 KB (added by jeremyfelt, 7 years ago)
  • src/wp-includes/ms-settings.php

     
    1010 * @since 3.0.0
    1111 */
    1212
    13 /** Include Multisite initialization functions */
    14 require( ABSPATH . WPINC . '/ms-load.php' );
    15 require( ABSPATH . WPINC . '/ms-default-constants.php' );
    1613
    17 if ( defined( 'SUNRISE' ) )
    18         include_once( WP_CONTENT_DIR . '/sunrise.php' );
    1914
    20 /** Check for and define SUBDOMAIN_INSTALL and the deprecated VHOST constant. */
    21 ms_subdomain_constants();
    22 
    2315if ( !isset( $current_site ) || !isset( $current_blog ) ) {
    2416
    2517        // Given the domain and path, let's try to identify the network and site.
  • src/wp-settings.php

     
    9191// Initialize multisite if enabled.
    9292if ( is_multisite() ) {
    9393        require( ABSPATH . WPINC . '/ms-blogs.php' );
     94        /** Include Multisite initialization functions */
     95        require( ABSPATH . WPINC . '/ms-load.php' );
     96        require( ABSPATH . WPINC . '/ms-default-constants.php' );
     97
     98        if ( defined( 'SUNRISE' ) ) {
     99                include_once( WP_CONTENT_DIR . '/sunrise.php' );
     100        }
     101
     102        /** Check for and define SUBDOMAIN_INSTALL and the deprecated VHOST constant. */
     103        ms_subdomain_constants();
     104
    94105        require( ABSPATH . WPINC . '/ms-settings.php' );
    95106} elseif ( ! defined( 'MULTISITE' ) ) {
    96107        define( 'MULTISITE', false );