Make WordPress Core


Ignore:
Timestamp:
04/05/2010 12:00:13 AM (15 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-includes/load.php

    r13830 r14000  
    569569 */
    570570function is_multisite() {
     571    if ( defined( 'MULTISITE' ) && ! MULTISITE )
     572        return false;
     573
    571574    if ( ( defined( 'MULTISITE' ) && MULTISITE ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) )
    572575        return true;
Note: See TracChangeset for help on using the changeset viewer.