Changeset 41268 for trunk/src/wp-admin/menu.php
- Timestamp:
- 08/18/2017 06:30:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r40390 r41268 34 34 35 35 if ( ! is_multisite() ) { 36 if ( current_user_can( 'update_core' ) ) 36 if ( current_user_can( 'update_core' ) ) { 37 37 $cap = 'update_core'; 38 elseif ( current_user_can( 'update_plugins' ) )38 } elseif ( current_user_can( 'update_plugins' ) ) { 39 39 $cap = 'update_plugins'; 40 else40 } elseif ( current_user_can( 'update_themes' ) ) { 41 41 $cap = 'update_themes'; 42 } else { 43 $cap = 'update_languages'; 44 } 42 45 $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-{$update_data['counts']['total']}'><span class='update-count'>" . number_format_i18n($update_data['counts']['total']) . "</span></span>" ), $cap, 'update-core.php'); 43 46 unset( $cap );
Note: See TracChangeset
for help on using the changeset viewer.