[wp-trac] [WordPress Trac] #53223: REST API: Allow header does not contain DELETE for OPTIONS requests
WordPress Trac
noreply at wordpress.org
Tue May 18 15:54:40 UTC 2021
#53223: REST API: Allow header does not contain DELETE for OPTIONS requests
--------------------------+----------------------
Reporter: talldanwp | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: REST API | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by TimothyBlynJacobs):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
There is no `DELETE` endpoint for `/wp/v2/posts`, you can only delete a
single post. And the delete post capability checks require that post id to
be accurate. Making an `OPTIONS` request to for instance `/wp/v2/posts/1`
does include the `DELETE` method in the allow header.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53223#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list