[wp-trac] [WordPress Trac] #51334: Implement enhanced post_status transition capabilities

WordPress Trac noreply at wordpress.org
Fri Sep 18 11:49:05 UTC 2020


#51334: Implement enhanced post_status transition capabilities
-----------------------------+------------------------------
 Reporter:  derweili         |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+------------------------------

Comment (by derweili):

 @johnbillion a user without `edit_published_posts`can't make a change to a
 publish post to revert the publish status. But a user with
 `edit_published_posts` AND without `publish_posts` can (accidentally)
 revert the post to draft (unpublish the post). If they did this by mistake
 they can't re-publish the post because they don't have the `publish_posts`
 capability.

 If I would like to have a user that can only edit published posts but
 don't want to give them the possibility to unpublish it, there is no
 officiall solution / hook to do this.


 Furthermore, the ability to limit specific status-changes to e.g. specific
 users would empower plugins to implement advanced publishing workflows
 like:

 draft -> proof-reading -> SEO review -> final-review -> published
 (each status transition requires a different type of user)

 Although implementing such a workflow is plugin territory WordPress could
 provide dedicated filter hooks to let plugins filter which status changes
 are allowed and which not.

 There are many more use cases that could be implemented if we had such
 "can_change_status filters".

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51334#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list