Make WordPress Core


Ignore:
Timestamp:
01/06/2010 08:19:35 PM (15 years ago)
Author:
ryan
Message:

Introduce is_multisite(). see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r12393 r12609  
    321321    if ( defined('WP_ADMIN') )
    322322        return WP_ADMIN;
     323    return false;
     324}
     325
     326/**
     327 * Whether Multisite support is enabled
     328 *
     329 * @since 3.0
     330 *
     331 * @return bool True if multisite is enabled, false otherwise.
     332 */
     333function is_multisite() {
     334    if ( defined('MULTISITE') )
     335        return true;
     336
    323337    return false;
    324338}
     
    389403require (ABSPATH . WPINC . '/widgets.php');
    390404
     405if ( is_multisite() ) {
     406    require_once( ABSPATH . WPINC . '/ms-functions.php' );
     407    require_once( ABSPATH . WPINC . '/ms-default-filters.php' );
     408}
     409
    391410if ( !defined('WP_CONTENT_URL') )
    392411    define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
Note: See TracChangeset for help on using the changeset viewer.