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

WordPress Trac noreply at wordpress.org
Wed Nov 2 04:02:02 UTC 2016


#38494: WP REST API: Stale Post Status on DELETE of Post
----------------------------------------+-----------------------
 Reporter:  timmydcrawford              |       Owner:  rmccue
     Type:  defect (bug)                |      Status:  assigned
 Priority:  normal                      |   Milestone:  4.7
Component:  REST API                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-unit-tests needs-patch  |     Focuses:
----------------------------------------+-----------------------
Changes (by rmccue):

 * keywords:  has-patch has-unit-tests => has-unit-tests needs-patch
 * owner:   => rmccue
 * status:  new => assigned


Comment:

 This was previously discussed in https://github.com/WP-API/WP-
 API/issues/1260

 We chatted in [https://wordpress.slack.com/archives/core-
 restapi/p1478058668000169 Slack briefly] about this; `true` is too "bare"
 of a response, and doesn't give you any recourse for undoing. Returning an
 object instead is a little nicer, and what we originally discussed on the
 above ticket before we (likely, me) changed our minds.

 Let's switch it back, and make it nice and extensible for forwards-
 compatibility.

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


More information about the wp-trac mailing list