-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix: Do not show pattern and template actions on the post editor. #60568
Fix: Do not show pattern and template actions on the post editor. #60568
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +28 B (0%) Total Size: 1.73 MB
ℹ️ View Unchanged
|
I don't really understand this, patterns and templates are already editable in the post editor, so why are we doing this? |
Some of the actions that we were showing like "view post" don't work for patterns and templates. With #60395 merged we can start showing again the actions for templates with actions that make sense there like revert template etc. |
Makes sense, so it's not really specific to the post editor.
👍 |
…Press#60568) Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
We are showing generic post actions on templates and patterns in the post editor. Some of these actions don't make sense (e.g. view post), we should hide these actions until template and pattern actions are ported to the editor module making them available on edit post too.
Testing Instructions for Keyboard
Edit a sync pattern on the post editor (e.g: add a sync pattern and then click edit original) and verify no actions are available on the top of the right sidebar.
Edit a template on the post editor and verify no actions are available on the top of the right sidebar.