diff --git a/wp-admin/network/menu.php b/wp-admin/network/menu.php
index 57fe9e0..bb28bff 100644
|
a
|
b
|
$submenu['users.php'][10] = array( _x('Add New', 'user'), 'create_users', 'user |
| 23 | 23 | |
| 24 | 24 | $update_data = wp_get_update_data(); |
| 25 | 25 | |
| 26 | | if ( $update_data['counts']['themes'] ) { |
| | 26 | if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) { |
| 27 | 27 | $menu[15] = array(sprintf( __( 'Themes %s' ), "<span class='update-plugins count-{$update_data['counts']['themes']}'><span class='theme-count'>" . number_format_i18n( $update_data['counts']['themes'] ) . "</span></span>" ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); |
| 28 | 28 | } else { |
| 29 | 29 | $menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); |
| … |
… |
$submenu['themes.php'][5] = array( __('Installed Themes'), 'manage_network_them |
| 32 | 32 | $submenu['themes.php'][10] = array( _x('Add New', 'theme'), 'install_themes', 'theme-install.php' ); |
| 33 | 33 | $submenu['themes.php'][15] = array( _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php' ); |
| 34 | 34 | |
| 35 | | if ( current_user_can( 'update_plugins' ) ) { |
| | 35 | if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) { |
| 36 | 36 | $menu[20] = array( sprintf( __( 'Plugins %s' ), "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n( $update_data['counts']['plugins'] ) . "</span></span>" ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins'); |
| 37 | 37 | } else { |
| 38 | 38 | $menu[20] = array( __('Plugins'), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' ); |