Make WordPress Core

Ticket #47124: 47124.diff

File 47124.diff, 1.6 KB (added by afercia, 4 years ago)
  • src/wp-admin/menu.php

     
    202202        /* translators: %s: Number of available theme updates. */
    203203        $submenu['themes.php'][5] = array( sprintf( __( 'Themes %s' ), $count ), $appearance_cap, 'themes.php' );
    204204
     205if ( ! is_multisite() ) {
     206        /* translators: Add new theme. */
     207        $submenu['themes.php'][6] = array( _x( 'Add New', 'theme' ), 'install_themes', 'theme-install.php', '', 'hide-if-no-js' );
     208}
     209
    205210        $customize_url            = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' );
    206         $submenu['themes.php'][6] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
     211        $submenu['themes.php'][7] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
    207212
    208213if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) {
    209214        $submenu['themes.php'][10] = array( __( 'Menus' ), 'edit_theme_options', 'nav-menus.php' );
  • src/wp-includes/functions.php

     
    51415141                return;
    51425142        }
    51435143
    5144         $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' );
     5144        $submenu['themes.php'][8] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' );
    51455145        ksort( $submenu['themes.php'], SORT_NUMERIC );
    51465146}
    51475147