diff --git a/wp-admin/menu.php b/wp-admin/menu.php index ece6b59456..e11d293dd2 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -223,8 +223,10 @@ if ( wp_is_block_template_theme() ) { // Hide Customize link on block themes unless a plugin or theme is using // customize_register to add a setting. if ( ! wp_is_block_template_theme() || has_action( 'customize_register' ) ) { - $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' ); - $submenu['themes.php'][7] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); + $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' ); + $position = wp_is_block_template_theme() ? 8 : 6; + + $submenu['themes.php'][ $position ] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); } if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 21a8172025..b0b5df2e60 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52177'; +$wp_version = '5.9-alpha-52178'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.