WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/05/2010 12:00:13 AM (11 years ago)
Author:
nacin
Message:

Prevent half-baked loading of MS that would happen when constants are added into wp-config below the wp-settings include. Now it would error on the redefinition of the MULTISITE constant, instead of vague errors, and prevent any MS from loading. see #12848

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r13831 r14000  
    8686    require( ABSPATH . WPINC . '/ms-blogs.php' );
    8787    require( ABSPATH . WPINC . '/ms-settings.php' );
     88} elseif ( ! defined( 'MULTISITE' ) ) {
     89    define( 'MULTISITE', false );
    8890}
    8991
Note: See TracChangeset for help on using the changeset viewer.