From 278725acba1f0b9469fa5b9bab760fef11ffe573 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Tue, 28 Feb 2023 15:04:23 +0000 Subject: [PATCH] Site Editor: Add 'path' query arg to Appearance > Template Parts menu. To display a list of block-based template parts for classic themes, this changeset adds a `path` query arg to the Appearance > Template Parts menu URL. This change is necessary due to recent changes to Site Editor's client-side routing. Reference: * [https://github.com/WordPress/gutenberg/pull/48343 Gutenberg PR 48343] * [https://github.com/WordPress/gutenberg/pull/42729 Gutenberg PR 42729] Follow-up to [55392], [54176]. Props mamaduka, audrasjb, fabiankaegy, hellofromTonya, kevin940726, mukesh27, youknowriad. Fixes #57819. Built from https://develop.svn.wordpress.org/trunk@55435 git-svn-id: http://core.svn.wordpress.org/trunk@54968 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index bd9e2c77797..c238b08cd5c 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -210,7 +210,7 @@ $submenu['themes.php'][6] = array( __( 'Template Parts' ), 'edit_theme_options', - 'site-editor.php?postType=wp_template_part', + 'site-editor.php?postType=wp_template_part&path=/wp_template_part/all', ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 8352a98d985..821c34131e0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta3-55434'; +$wp_version = '6.2-beta3-55435'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.