Changeset 23871 for trunk/wp-admin/menu.php
- Timestamp:
- 03/29/2013 08:39:54 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/menu.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r22908 r23871 137 137 $menu[59] = array( '', 'read', 'separator2', '', 'wp-menu-separator' ); 138 138 139 if ( current_user_can( 'switch_themes') ) { 140 $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'none' ); 141 $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 142 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 143 $submenu['themes.php'][10] = array(__('Menus'), 'edit_theme_options', 'nav-menus.php'); 144 } else { 145 $menu[60] = array( __('Appearance'), 'edit_theme_options', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'none' ); 146 $submenu['themes.php'][5] = array(__('Themes'), 'edit_theme_options', 'themes.php'); 147 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 148 $submenu['themes.php'][10] = array(__('Menus'), 'edit_theme_options', 'nav-menus.php' ); 149 } 139 $appearance_cap = current_user_can( 'switch_themes') ? 'switch_themes' : 'edit_theme_options'; 140 141 $menu[60] = array( __('Appearance'), $appearance_cap, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div' ); 142 $submenu['themes.php'][4] = array( __( 'Customize' ), $appearance_cap, 'customize.php', 'hide-if-no-customize' ); 143 $submenu['themes.php'][5] = array(__( 'Themes' ), $appearance_cap, 'themes.php'); 144 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 145 $submenu['themes.php'][10] = array(__( 'Menus' ), 'edit_theme_options', 'nav-menus.php'); 146 147 unset( $appearance_cap ); 150 148 151 149 // Add 'Editor' to the bottom of the Appearance menu.
Note: See TracChangeset
for help on using the changeset viewer.