Make WordPress Core


Ignore:
Timestamp:
03/09/2010 07:10:07 PM (15 years ago)
Author:
nacin
Message:

Rename WP_ENABLE_MULTISITE to WP_ALLOW_MULTISITE to minimize confusion. Prevent direct access to network.php without the constant unless the install process was already started. see #11816 for network.php. see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r13633 r13634  
    2525foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table )
    2626    $wpdb->$table = $prefixed_table;
     27
     28if ( ! network_domain_check() && ( ! defined( 'WP_ALLOW_MULTISITE' ) || ! WP_ALLOW_MULTISITE ) )
     29    wp_die( __( 'You must define the <code>WP_ALLOW_MULTISITE</code> constant as true in your wp-config.php file to allow creation of a Network.' ) );
    2730
    2831$title = __( 'Create a Network of WordPress Sites' );
Note: See TracChangeset for help on using the changeset viewer.