From ad6e01a434e3bdd0b56c3c5412a7c81b46072f55 Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Tue, 28 Feb 2023 15:02:18 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@55435 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/menu.php b/src/wp-admin/menu.php index bd9e2c7779720..c238b08cd5cf4 100644 --- a/src/wp-admin/menu.php +++ b/src/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', ); }