Changeset 52178
- Timestamp:
- 11/16/2021 04:43:49 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r52158 r52178 224 224 // customize_register to add a setting. 225 225 if ( ! wp_is_block_template_theme() || has_action( 'customize_register' ) ) { 226 $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' ); 227 $submenu['themes.php'][7] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); 226 $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' ); 227 $position = wp_is_block_template_theme() ? 8 : 6; 228 229 $submenu['themes.php'][ $position ] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); 228 230 } 229 231
Note: See TracChangeset
for help on using the changeset viewer.