Changeset 54176 for trunk/src/wp-admin/menu.php
- Timestamp:
- 09/15/2022 12:18:30 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r54165 r54176 215 215 } 216 216 217 if ( ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ) { 218 $submenu['themes.php'][6] = array( 219 __( 'Template Parts' ), 220 'edit_theme_options', 221 'site-editor.php?postType=wp_template_part', 222 ); 223 } 224 217 225 $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' ); 218 226 … … 220 228 // is using 'customize_register' to add a setting. 221 229 if ( ! wp_is_block_theme() || has_action( 'customize_register' ) ) { 222 $position = wp_is_block_theme() ? 7 : 6;230 $position = ( wp_is_block_theme() || current_theme_supports( 'block-template-parts' ) ) ? 7 : 6; 223 231 224 232 $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.