mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01: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: http://svn.automattic.com/wordpress/trunk@13634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5648e048c7
commit
c42b0e50ea
@ -181,7 +181,7 @@ $menu[75] = array( __('Tools'), 'read', 'tools.php', '', 'menu-top', 'menu-tools
|
|||||||
$submenu['tools.php'][15] = array( __('Export'), 'import', 'export.php' );
|
$submenu['tools.php'][15] = array( __('Export'), 'import', 'export.php' );
|
||||||
if ( is_multisite() && ($current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path) )
|
if ( is_multisite() && ($current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path) )
|
||||||
$submenu['tools.php'][25] = array( __('Delete Blog'), 'manage_options', 'ms-delete-site.php' );
|
$submenu['tools.php'][25] = array( __('Delete Blog'), 'manage_options', 'ms-delete-site.php' );
|
||||||
if ( !is_multisite() && is_super_admin() && defined('WP_ENABLE_MULTISITE') )
|
if ( !is_multisite() && is_super_admin() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE )
|
||||||
$submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php');
|
$submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php');
|
||||||
|
|
||||||
$menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top', 'menu-settings', 'div' );
|
$menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top', 'menu-settings', 'div' );
|
||||||
|
@ -25,6 +25,9 @@ include( ABSPATH . 'wp-admin/includes/network.php' );
|
|||||||
foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table )
|
foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table )
|
||||||
$wpdb->$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' );
|
$title = __( 'Create a Network of WordPress Sites' );
|
||||||
$parent_file = 'tools.php';
|
$parent_file = 'tools.php';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user