Changeset 58278
- Timestamp:
- 06/02/2024 08:15:59 AM (3 months ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r57887 r58278 207 207 $submenu['themes.php'][6] = array( _x( 'Editor', 'site editor menu item' ), 'edit_theme_options', 'site-editor.php' ); 208 208 } else { 209 $submenu['themes.php'][6] = array( _x( 'Patterns', 'patterns menu item' ), 'edit_theme_options', 'edit.php?post_type=wp_block' ); 210 } 211 212 if ( ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ) { 213 $submenu['themes.php'][7] = array( 214 __( 'Template Parts' ), 215 'edit_theme_options', 216 'site-editor.php?path=/wp_template_part/all', 217 ); 209 $submenu['themes.php'][6] = array( _x( 'Patterns', 'patterns menu item' ), 'edit_theme_options', 'site-editor.php?path=/patterns' ); 218 210 } 219 211 … … 223 215 // is using 'customize_register' to add a setting. 224 216 if ( ! wp_is_block_theme() || has_action( 'customize_register' ) ) { 225 $position = ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ? 8 : 7; 226 227 $submenu['themes.php'][ $position ] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); 217 $submenu['themes.php'][7] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); 228 218 } 229 219 -
trunk/src/wp-includes/functions.php
r58200 r58278 5401 5401 5402 5402 $menu_name = __( 'Widgets' ); 5403 if ( wp_is_block_theme() || current_theme_supports( 'block-template-parts' )) {5403 if ( wp_is_block_theme() ) { 5404 5404 $submenu['themes.php'][] = array( $menu_name, 'edit_theme_options', 'widgets.php' ); 5405 5405 } else {
Note: See TracChangeset
for help on using the changeset viewer.