Ticket #21413: add_customizer_to_menu.patch
File add_customizer_to_menu.patch, 1.2 KB (added by , 12 years ago) |
---|
-
wp-admin/menu.php
131 131 132 132 if ( current_user_can( 'switch_themes') ) { 133 133 $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div' ); 134 $submenu['themes.php'][4] = array(__( 'Customize' ), 'edit_theme_options', 'customizer.php' ); 134 135 $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 135 136 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 136 137 $submenu['themes.php'][10] = array(__('Menus'), 'edit_theme_options', 'nav-menus.php'); 137 138 } else { 138 139 $menu[60] = array( __('Appearance'), 'edit_theme_options', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div' ); 140 $submenu['themes.php'][4] = array(__( 'Customize' ), 'edit_theme_options', 'customizer.php' ); 139 141 $submenu['themes.php'][5] = array(__('Themes'), 'edit_theme_options', 'themes.php'); 140 142 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) 141 143 $submenu['themes.php'][10] = array(__('Menus'), 'edit_theme_options', 'nav-menus.php' );