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

WordPress Trac noreply at wordpress.org
Wed Nov 2 08:42:29 UTC 2016


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

Comment (by jnylen0):

 Changes from `38494.3.diff` to `38494.4.diff`:

 - Only call `prepare_item_for_response` on previous comment when it is
 needed
 - Improve `rest_trash_not_supported` error messages with specific resource
 type and mention `force=true` (this will save developers a Google search)
 - Add `'type' => 'boolean'` to `force` argument; this fixes passing
 `force=false` as a string
 - Fix the test suite and add more deletion tests

 This is looking pretty good to me.

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


More information about the wp-trac mailing list