From b8c4418d509b9ff656ba691f71e46a2a647dfcee Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 11 Jan 2011 21:00:23 +0000 Subject: [PATCH] Only rely on is_super_admin for is_multisite when generating menu code. fixes #16184. git-svn-id: http://svn.automattic.com/wordpress/trunk@17259 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index c75bca6018..69f978b97f 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -169,7 +169,7 @@ if ( !empty($update_plugins->response) ) $update_count = count( $update_plugins->response ); $menu_perms = get_site_option('menu_items', array()); -if ( is_super_admin() || ( is_multisite() && isset($menu_perms['plugins']) && $menu_perms['plugins'] ) ) { +if ( ! is_multisite() || ! empty( $menu_perms['plugins'] ) ) { $count = "" . number_format_i18n($update_count) . ""; if ( is_multisite() ) $count = ''; @@ -206,7 +206,7 @@ $menu[75] = array( __('Tools'), 'edit_posts', 'tools.php', '', 'menu-top menu-ic $submenu['tools.php'][15] = array( __('Export'), 'import', 'export.php' ); if ( is_multisite() && !is_main_site() ) $submenu['tools.php'][25] = array( __('Delete Site'), 'manage_options', 'ms-delete-site.php' ); - if ( ! is_multisite() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE && is_super_admin() ) + if ( ! is_multisite() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE ) $submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php'); $menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'div' );