Skip to content

Commit

Permalink
Site Editor: Add 'path' query arg to Appearance > Template Parts menu.
Browse files Browse the repository at this point in the history
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:
* [WordPress/gutenberg#48343 Gutenberg PR 48343]
* [WordPress/gutenberg#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
  • Loading branch information
hellofromtonya committed Feb 28, 2023
1 parent d401685 commit ad6e01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
}

Expand Down

0 comments on commit ad6e01a

Please sign in to comment.