Changeset 57543 for trunk/src/wp-admin/menu.php
- Timestamp:
- 02/06/2024 07:40:21 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r57159 r57543 206 206 if ( wp_is_block_theme() ) { 207 207 $submenu['themes.php'][6] = array( _x( 'Editor', 'site editor menu item' ), 'edit_theme_options', 'site-editor.php' ); 208 } else { 209 $submenu['themes.php'][6] = array( __( 'Patterns', 'site editor menu item' ), 'edit_theme_options', 'edit.php?post_type=wp_block' ); 208 210 } 209 211 210 212 if ( ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ) { 211 $submenu['themes.php'][ 6] = array(213 $submenu['themes.php'][7] = array( 212 214 __( 'Template Parts' ), 213 215 'edit_theme_options', … … 221 223 // is using 'customize_register' to add a setting. 222 224 if ( ! wp_is_block_theme() || has_action( 'customize_register' ) ) { 223 $position = ( wp_is_block_theme() || current_theme_supports( 'block-template-parts' ) ) ? 7 : 6;225 $position = ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ? 8 : 7; 224 226 225 227 $submenu['themes.php'][ $position ] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' );
Note: See TracChangeset
for help on using the changeset viewer.