Multisite super admins should still be able to see the Plugins menu in the site admin. fixes #16184.

git-svn-id: https://develop.svn.wordpress.org/trunk@17267 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-12 07:12:59 +00:00
parent d2f18e4040
commit 334356506b
1 changed files with 1 additions and 1 deletions

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 = '';