[wp-trac] [WordPress Trac] #43709: Fix or remove the "delete revision" endpoint
WordPress Trac
noreply at wordpress.org
Sat Apr 7 03:27:39 UTC 2018
#43709: Fix or remove the "delete revision" endpoint
--------------------------+------------------
Reporter: azaozz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------
Comment (by rmccue):
We could handle this in `map_meta_cap`: if the cap is `delete_post` and
the post is a revision, return `do_not_allow`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43709#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list