-
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
Show publish panel only in edit mode #62813
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: -197 B (-0.01%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
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.
Thanks for the PR!
Not a blocker, but from what I understand, this PR fixes part of #62702. There is another problem with #62702:
The following issue occurs whether the canvas is in view or edit mode.
- Open any template.
- Click the tab key repeatedly to move focus to the "Open puglish panel" button.
- Click that button.
- The Publish panel appears.
- URL is undefined.
- Copy button doesn't work.
- The 'View Template' button doesn't work.
- Clicking the 'Add New Template' button shows an error.
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6 branch to get it included in the next release: f3deff5 |
What?
Fixes: #62702
This PR fixes that by only rendering this when we're in edit mode, which is the default for post editor.
Testing Instructions
tab
key you shouldn't be able to reproduce this:22abfebc1fb8e777bcf3a0e57fd19a4d.mp4
tab
key in post editor should work as before and show theopen publish panel
button.