Changeset 29817
- Timestamp:
- 10/02/2014 03:48:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/menu.php
r27444 r29817 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 { … … 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 {
Note: See TracChangeset
for help on using the changeset viewer.