Changeset 17217
- Timestamp:
- 01/04/2011 08:36:06 AM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
admin-header.php (modified) (2 diffs)
-
menu.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r17016 r17217 152 152 if ( is_multisite() && is_super_admin() ) { 153 153 if ( !is_network_admin() ) 154 $links[10] = '| <a href="' . network_admin_url() . '" title="' . esc_attr__('Network Admin') . '">' . __('Network Admin') . '</a>';154 $links[10] = '| <a href="' . network_admin_url() . '" title="' . ( ! empty( $update_title ) ? $update_title : esc_attr__('Network Admin') ) . '">' . __('Network Admin') . ( ! empty( $total_update_count ) ? ' (' . number_format_i18n( $total_update_count ) . ')' : '' ) . '</a>'; 155 155 else 156 156 $links[10] = '| <a href="' . get_dashboard_url( get_current_user_id() ) . '" title="' . esc_attr__('Site Admin') . '">' . __('Site Admin') . '</a>'; … … 171 171 <div id="wpbody"> 172 172 <?php 173 unset($title_class, $blog_name );173 unset($title_class, $blog_name, $total_update_count, $update_title); 174 174 175 175 require(ABSPATH . 'wp-admin/menu-header.php'); -
trunk/wp-admin/menu.php
r17048 r17217 29 29 if ( is_multisite() ) { 30 30 $submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' ); 31 } else { 31 } 32 33 if ( ! is_multisite() || is_super_admin() ) { 32 34 $plugin_update_count = $theme_update_count = $wordpress_update_count = 0; 33 35 $update_plugins = get_site_transient( 'update_plugins' ); … … 41 43 $wordpress_update_count = 1; 42 44 43 $ update_count = $plugin_update_count + $theme_update_count + $wordpress_update_count;45 $total_update_count = $plugin_update_count + $theme_update_count + $wordpress_update_count; 44 46 $update_title = array(); 45 47 if ( $wordpress_update_count ) … … 51 53 52 54 $update_title = !empty($update_title) ? esc_attr(implode(', ', $update_title)) : ''; 53 54 $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-$update_count' title='$update_title'><span class='update-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'update_core', 'update-core.php'); 55 unset($plugin_update_count, $theme_update_count, $wordpress_update_count, $update_count, $update_title, $update_themes, $update_plugins, $update_wordpress); 56 } 55 } 56 57 if ( ! is_multisite() ) { 58 $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-$total_update_count' title='$total_update_title'><span class='update-count'>" . number_format_i18n($total_update_count) . "</span></span>" ), 'update_core', 'update-core.php'); 59 } 60 61 unset($plugin_update_count, $theme_update_count, $wordpress_update_count, $update_themes, $update_plugins, $update_wordpress); 57 62 58 63 $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
Note: See TracChangeset
for help on using the changeset viewer.