[wp-trac] [WordPress Trac] #38494: WP REST API: Stale Post Status on DELETE of Post

WordPress Trac noreply at wordpress.org
Tue Oct 25 21:40:43 UTC 2016


#38494: WP REST API: Stale Post Status on DELETE of Post
----------------------------+-----------------------------
 Reporter:  timmydcrawford  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  REST API        |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 When issuing a DELETE against a post or page in the WP REST API, the
 response sends the original post object, which includes the post.status
 prior to the DELETE operation being completed.

 The returned object, since the context is edit, shows the post.status, and
 it does not show the post with a status=trash, which is what I would
 expect after the DELETE operation completes.  Instead, the status of the
 post prior to the DELETE operation is shown.

 Additionally, when DELETE'ing a revision on a post or a page, the response
 sent back after the request simply says "true".  Seems like the DELETE
 operations should return a similar response for all operations across the
 API.

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


More information about the wp-trac mailing list