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
This commit is contained in:
hellofromTonya 2023-02-28 15:04:23 +00:00
parent f6b1fd3205
commit 278725acba
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ if ( ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ) )
$submenu['themes.php'][6] = array( $submenu['themes.php'][6] = array(
__( 'Template Parts' ), __( 'Template Parts' ),
'edit_theme_options', 'edit_theme_options',
'site-editor.php?postType=wp_template_part', 'site-editor.php?postType=wp_template_part&path=/wp_template_part/all',
); );
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.