Skip to content
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

Can't switch status from publish to pending review or draft #1452

Closed
afercia opened this issue Jun 26, 2017 · 4 comments
Closed

Can't switch status from publish to pending review or draft #1452

afercia opened this issue Jun 26, 2017 · 4 comments
Labels
[Feature] Document Settings Document settings experience

Comments

@afercia
Copy link
Contributor

afercia commented Jun 26, 2017

The available flows in the current WordPress "publish box" are maybe a bit complicated to follow and not sometimes have minor flaws but they always allow to change the post status.
For example, when a post is "published", it's always possible to switch it to "pending review" or "draft":

screen shot 2017-06-26 at 14 29 04

and then users are offered to "Save as pending" or "Save as draft" (or publish again):

screen shot 2017-06-26 at 14 40 26

Currently, I can't find a similar flow on Gutenberg: unless I'm missing something, once a post is published, there'e no way to se it to pending review or draft. Not sure if this has already been discussed or if #708 may help.

@youknowriad
Copy link
Contributor

You're right, we discussed adding a "Revert to draft" button to fix this.

Noting that the way WordPress stores the status is not easy to work within an SPA. (The visibility is mixed with the pending toggle and also mixed with the "draft/published" status, all in the same attribute status).

@afercia
Copy link
Contributor Author

afercia commented Jun 26, 2017

Yep... historical, technical debt. Worth also noting register_post_status() can be used to create new ones, even if the interface doesn't expose them. See https://core.trac.wordpress.org/ticket/12706

@moorscode
Copy link
Contributor

moorscode commented Nov 26, 2017

It is currently not possible to revert a published post to draft or pending review status.
v-1.7.0

@seb-montana
Copy link

It's ok on v.4.7 - you can find a checkbox named "pending review" in "Status & Visibility" panel.
But nothing about register_post_status() ? Trying to register new post status, nothing appears in back end. Anyone can help me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Document Settings Document settings experience
Projects
None yet
Development

No branches or pull requests

5 participants