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
This commit is contained in:
nacin 2011-01-12 07:12:59 +00:00
parent 4d7ad91916
commit 3a59f70f18

View File

@ -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 = "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>";
if ( is_multisite() )
$count = '';