diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php
index 79c6e6642b..ac79340978 100644
--- a/wp-admin/admin-header.php
+++ b/wp-admin/admin-header.php
@@ -151,7 +151,7 @@ $links = array();
$links[5] = sprintf(__('Howdy, %2$s'), 'profile.php', $user_identity);
if ( is_multisite() && is_super_admin() ) {
if ( !is_network_admin() )
- $links[10] = '| ' . __('Network Admin') . '';
+ $links[10] = '| ' . __('Network Admin') . ( ! empty( $total_update_count ) ? ' (' . number_format_i18n( $total_update_count ) . ')' : '' ) . '';
else
$links[10] = '| ' . __('Site Admin') . '';
}
@@ -170,7 +170,7 @@ echo implode(' ', $links);
response) )
@@ -40,7 +42,7 @@ if ( is_multisite() ) {
if ( !empty($update_wordpress) && !in_array( $update_wordpress[0]->response, array('development', 'latest') ) )
$wordpress_update_count = 1;
- $update_count = $plugin_update_count + $theme_update_count + $wordpress_update_count;
+ $total_update_count = $plugin_update_count + $theme_update_count + $wordpress_update_count;
$update_title = array();
if ( $wordpress_update_count )
$update_title[] = sprintf(__('%d WordPress Update'), $wordpress_update_count);
@@ -50,11 +52,14 @@ if ( is_multisite() ) {
$update_title[] = sprintf(_n('%d Theme Update', '%d Themes Updates', $theme_update_count), $theme_update_count);
$update_title = !empty($update_title) ? esc_attr(implode(', ', $update_title)) : '';
-
- $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "" . number_format_i18n($update_count) . "" ), 'update_core', 'update-core.php');
- unset($plugin_update_count, $theme_update_count, $wordpress_update_count, $update_count, $update_title, $update_themes, $update_plugins, $update_wordpress);
}
+if ( ! is_multisite() ) {
+ $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "" . number_format_i18n($total_update_count) . "" ), 'update_core', 'update-core.php');
+}
+
+unset($plugin_update_count, $theme_update_count, $wordpress_update_count, $update_themes, $update_plugins, $update_wordpress);
+
$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
$menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', '', 'open-if-no-js menu-top menu-icon-post', 'menu-posts', 'div' );