From 3a59f70f184c7d54d2c753c4a2d74c1ab3af6af8 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 12 Jan 2011 07:12:59 +0000 Subject: [PATCH] Multisite super admins should still be able to see the Plugins menu in the site admin. fixes #16184. git-svn-id: http://svn.automattic.com/wordpress/trunk@17267 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 69f978b97..30d0169cd 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_multisite() || ! empty( $menu_perms['plugins'] ) ) { +if ( ! is_multisite() || is_super_admin() || ! empty( $menu_perms['plugins'] ) ) { $count = "" . number_format_i18n($update_count) . ""; if ( is_multisite() ) $count = '';