-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Enable save draft
button for posts with custom post status
#63293
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @agapetry. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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: -54 B (0%) 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.
Maybe. I think we should see the custom post statuses issue a bit more and handle this properly. For now and 6.6 let's get this to solve the primary issue for saving. |
Sounds good! |
Unlinked contributors: agapetry. Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6 branch to get it included in the next release: 7ddbeeb |
…ss#63293) Unlinked contributors: agapetry. Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
…ss#63293) Unlinked contributors: agapetry. Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
What?
Fixes: #63161
Before the update of the publishing flow, we would render the
save draft
button for a post with custom post type, even if it wasn't really a post withdraft
status. This enabled use cases to make changes in such posts without having to publish first.This PR adds an extra check when to show this button, to see if the post status is a custom one.
Testing Instructions
From the issue:
save draft
button.Notes
Custom post statuses are not handled well right now and this is tracked in this issue.