WordPress.org

Make WordPress Core

Ticket #26678: 26678-sunrise.diff

File 26678-sunrise.diff, 511 bytes (added by pdclark, 7 years ago)

Allow either false or 'off' to disable sunrise.php

  • wp-includes/ms-settings.php

    diff --git wp-includes/ms-settings.php wp-includes/ms-settings.php
    index af2ea0d..8eaae28 100644
     
    1414require( ABSPATH . WPINC . '/ms-load.php' );
    1515require( ABSPATH . WPINC . '/ms-default-constants.php' );
    1616
    17 if ( defined( 'SUNRISE' ) )
     17if ( defined( 'SUNRISE' ) && SUNRISE && 'off' !== SUNRISE )
    1818        include_once( WP_CONTENT_DIR . '/sunrise.php' );
    1919
    2020/** Check for and define SUBDOMAIN_INSTALL and the deprecated VHOST constant. */