Ticket #47124: 47124.diff
| File 47124.diff, 1.6 KB (added by , 4 years ago) |
|---|
-
src/wp-admin/menu.php
202 202 /* translators: %s: Number of available theme updates. */ 203 203 $submenu['themes.php'][5] = array( sprintf( __( 'Themes %s' ), $count ), $appearance_cap, 'themes.php' ); 204 204 205 if ( ! 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 205 210 $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' ); 207 212 208 213 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { 209 214 $submenu['themes.php'][10] = array( __( 'Menus' ), 'edit_theme_options', 'nav-menus.php' ); -
src/wp-includes/functions.php
5141 5141 return; 5142 5142 } 5143 5143 5144 $submenu['themes.php'][ 7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' );5144 $submenu['themes.php'][8] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' ); 5145 5145 ksort( $submenu['themes.php'], SORT_NUMERIC ); 5146 5146 } 5147 5147