Changeset 52330 for trunk/src/wp-admin/menu.php
- Timestamp:
- 12/07/2021 12:00:45 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r52232 r52330 203 203 $submenu['themes.php'][5] = array( sprintf( __( 'Themes %s' ), $count ), $appearance_cap, 'themes.php' ); 204 204 205 if ( wp_is_block_t emplate_theme() ) {205 if ( wp_is_block_theme() ) { 206 206 $submenu['themes.php'][6] = array( 207 207 sprintf( … … 217 217 // Hide Customize link on block themes unless a plugin or theme is using 218 218 // customize_register to add a setting. 219 if ( ! wp_is_block_t emplate_theme() || has_action( 'customize_register' ) ) {219 if ( ! wp_is_block_theme() || has_action( 'customize_register' ) ) { 220 220 $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' ); 221 $position = wp_is_block_t emplate_theme() ? 7 : 6;221 $position = wp_is_block_theme() ? 7 : 6; 222 222 223 223 $submenu['themes.php'][ $position ] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); … … 256 256 function _add_themes_utility_last() { 257 257 add_submenu_page( 258 wp_is_block_t emplate_theme() ? 'tools.php' : 'themes.php',258 wp_is_block_theme() ? 'tools.php' : 'themes.php', 259 259 __( 'Theme Editor' ), 260 260 __( 'Theme Editor' ),
Note: See TracChangeset
for help on using the changeset viewer.