[wp-trac] [WordPress Trac] #48375: Introduce a separate capability for trashing a post
WordPress Trac
noreply at wordpress.org
Mon Jan 6 20:06:53 UTC 2020
#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 Types | Version:
Severity: normal | Resolution:
Keywords: granular-capabilities needs-patch | Focuses:
-----------------------------------------------+---------------------------
Comment (by desrosj):
@johnbillion If a user with this capability trashes a post, and the trash
is set to automatically empty itself after X days, then users with only
this capability would technically still be able to permanently delete a
post (though not immediately) because `wp_scheduled_delete()` does not
check who trashed the post.
Because this capability would map to `delete_post|delete_posts` by
default, this may be something that falls into plugin territory. But it
came to mind thinking this one through and wanted to mention it here for
thought.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48375#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list