mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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
git-svn-id: https://develop.svn.wordpress.org/trunk@13634 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -25,6 +25,9 @@ include( ABSPATH . 'wp-admin/includes/network.php' );
|
||||
foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table )
|
||||
$wpdb->$table = $prefixed_table;
|
||||
|
||||
if ( ! network_domain_check() && ( ! defined( 'WP_ALLOW_MULTISITE' ) || ! WP_ALLOW_MULTISITE ) )
|
||||
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.' ) );
|
||||
|
||||
$title = __( 'Create a Network of WordPress Sites' );
|
||||
$parent_file = 'tools.php';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user