diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 75e3d7e065..17317f9daa 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -210,7 +210,7 @@ if ( ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) ) $submenu['themes.php'][6] = array( __( 'Template Parts' ), 'edit_theme_options', - 'site-editor.php?postType=wp_template_part&path=/wp_template_part/all', + 'site-editor.php?path=/wp_template_part/all', ); } diff --git a/wp-admin/site-editor.php b/wp-admin/site-editor.php index 6c4efd2a50..93b1a93131 100644 --- a/wp-admin/site-editor.php +++ b/wp-admin/site-editor.php @@ -23,7 +23,10 @@ if ( ! ( current_theme_supports( 'block-template-parts' ) || wp_is_block_theme() wp_die( __( 'The theme you are currently using is not compatible with the Site Editor.' ) ); } -$is_template_part_editor = isset( $_GET['postType'] ) && 'wp_template_part' === sanitize_key( $_GET['postType'] ); +$is_template_part = isset( $_GET['postType'] ) && 'wp_template_part' === sanitize_key( $_GET['postType'] ); +$is_template_part_path = isset( $_GET['path'] ) && 'wp_template_partall' === sanitize_key( $_GET['path'] ); +$is_template_part_editor = $is_template_part || $is_template_part_path; + if ( ! wp_is_block_theme() && ! $is_template_part_editor ) { wp_die( __( 'The theme you are currently using is not compatible with the Site Editor.' ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9811d9686e..1c5cb5b435 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56301'; +$wp_version = '6.4-alpha-56302'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.