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

WordPress Trac noreply at wordpress.org
Wed Oct 26 21:25:13 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          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by jnylen0):

 +1 we should send `status: 'trash'` when trashing a post/page.

 There is also some inconsistency around how other DELETE requests behave
 and what they return:

 - Deleting a post with `force=true`: returns the post object (by the logic
 above, this should return `true`)
 - Deleting a revision: does not require `force=true`; returns `true`
 - Deleting a taxonomy term: requires `force=true`; returns the term object
 (by the logic above, this should return `true`)

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


More information about the wp-trac mailing list