[wp-trac] [WordPress Trac] #41674: More granular capabilities for restoring and permanently deleting trashed posts
WordPress Trac
noreply at wordpress.org
Sat Aug 19 16:00:29 UTC 2017
#41674: More granular capabilities for restoring and permanently deleting trashed
posts
-------------------------+-------------------------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post | Version:
Types | Keywords: needs-patch needs-unit-tests
Severity: normal | granular-capabilities
Focuses: |
-------------------------+-------------------------------------------------
Currently the user capability required for restoring a trashed post or
permanently deleting a trashed post is `delete_post`, which maps to
`delete_posts`. There should be a separate capability for each of these
actions.
Suggestion:
* `restore_trashed_post` which maps to `restore_trashed_posts` which maps
to `delete_posts`.
* `delete_trashed_post` which maps to `delete_trashed_posts` which maps to
`delete_posts`.
Emptying the trash should use the `delete_trashed_posts` capability.
This allows for more granular control over which users can or cannot
restore or permanently delete posts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41674>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list