-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync: Fix Appearance > Template Parts URL #4142
Conversation
src/wp-admin/menu.php
Outdated
@@ -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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember correctly, there's no need to escape static strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to escape this string as it is not exposed to user edits, indeed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Confirmed the PR includes the change from Gutenberg PR 48343 ✅
- Able to reproduce the issue ✅
- Confirmed this patch fixes the issue ✅ (See Test Report)
- Code is consistent with multiple args in this file ✅
Ready for commit 👍
Committed via https://core.trac.wordpress.org/changeset/55435. |
Gutenberg PR: WordPress/gutenberg#48343
Trac ticket: https://core.trac.wordpress.org/ticket/57819