mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
4d7ad91916
commit
3a59f70f18
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user