Make WordPress Core

Ticket #21413: 21413.7.diff

File 21413.7.diff, 1001 bytes (added by MikeHansenMe, 12 years ago)

switch customizer and themes in menu

  • wp-admin/menu.php

     
    139139$appearance_cap = current_user_can( 'switch_themes') ? 'switch_themes' : 'edit_theme_options';
    140140 
    141141$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');
     142        $submenu['themes.php'][4] = array(__( 'Themes' ), $appearance_cap, 'themes.php');
     143        $submenu['themes.php'][5] = array( __( 'Customize' ), $appearance_cap, 'customize.php', 'hide-if-no-customize' );
    144144        if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) )
    145145                $submenu['themes.php'][10] = array(__( 'Menus' ), 'edit_theme_options', 'nav-menus.php');
    146146