[wp-trac] [WordPress Trac] #48375: Introduce a separate capability for trashing a post

WordPress Trac noreply at wordpress.org
Sun Oct 20 20:40:44 UTC 2019


#48375: Introduce a separate capability for trashing a post
---------------------------+-----------------------------------------------
 Reporter:  johnbillion    |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Posts, Post    |    Version:
  Types                    |
 Severity:  normal         |   Keywords:  granular-capabilities needs-patch
  Focuses:                 |
---------------------------+-----------------------------------------------
 Related: #41674

 It's sometimes desirable to allow users to trash posts but not permanently
 delete them once trashed, nor empty the trash.

 There should be a meta capability, `trash_post|trash_posts`, which by
 default maps to `delete_post|delete_posts` which is used when a post is
 trashed instead of deleted. This would allow a plugin to grant a user the
 ability to trash posts but not permanently delete them.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48375>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list