[wp-trac] [WordPress Trac] #40672: Undefined property `requireForceForDelete` prevents deleting terms in Backbone.js client

WordPress Trac noreply at wordpress.org
Tue Oct 31 02:53:46 UTC 2017


#40672: Undefined property `requireForceForDelete` prevents deleting terms in
Backbone.js client
--------------------------+-----------------------------------
 Reporter:  caercam       |       Owner:  adamsilverstein
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.9
Component:  REST API      |     Version:  4.7.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  needs-patch   |     Focuses:  javascript, rest-api
--------------------------+-----------------------------------
Changes (by adamsilverstein):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"42047"]:
 {{{
 #!CommitTicketReference repository="" revision="42047"
 REST API: JS client - Enumerate endpoints supporting trash.

 Improve the logic determining which endpoints support the trash by
 enumerating them. Endpoints that don't support the trash require
 `force=true` when deleting. The previous approach relied on the `force`
 argument description, which is a translated string and was fragile. In the
 future, we can expose whether an endpoint supports the trash as part of
 its schema and automate this logic.

 Props Soean.
 Fixes #40672.
 }}}

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


More information about the wp-trac mailing list