diff --git a/wp-admin/menu.php b/wp-admin/menu.php index f2194adccd..cbd18d738d 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -174,11 +174,12 @@ function _add_themes_utility_last() { add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php'); } -$menu_perms = get_site_option('menu_items', array()); +$menu_perms = get_site_option( 'menu_items', array() ); if ( ! is_multisite() || is_super_admin() || ! empty( $menu_perms['plugins'] ) ) { - $count = "" . number_format_i18n($plugin_update_count) . ""; - if ( is_multisite() || ! current_user_can( 'update_plugins' ) ) - $count = ''; + $count = ''; + if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) + $count = "" . number_format_i18n($plugin_update_count) . ""; + $menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' ); $submenu['plugins.php'][5] = array( __('Installed Plugins'), 'activate_plugins', 'plugins.php' );