From 6075fb30d2afd708c84cd3b4043655735b9f4bae Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 4 Mar 2010 21:20:55 +0000 Subject: [PATCH] Show the network enable menu only if config flag is set. Per wordpress-dev meetup. see #11644 git-svn-id: http://svn.automattic.com/wordpress/trunk@13587 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index b80c87a716..5ae1efbf66 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -154,7 +154,7 @@ $menu[75] = array( __('Tools'), 'read', 'tools.php', '', 'menu-top', 'menu-tools $submenu['tools.php'][20] = array( __('Upgrade'), 'install_plugins', 'update-core.php'); 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' ); - if ( !is_multisite() && is_super_admin() ) + if ( !is_multisite() && is_super_admin() && defined('WP_ENABLE_MULTISITE') ) $submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php'); $menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top', 'menu-settings', 'div' );