[wp-trac] [WordPress Trac] #40672: Undefined property `requireForceForDelete` prevents deleting terms in Backbone.js client
WordPress Trac
noreply at wordpress.org
Sun Oct 1 13:06:45 UTC 2017
#40672: Undefined property `requireForceForDelete` prevents deleting terms in
Backbone.js client
---------------------------------------------+-----------------------------
Reporter: caercam | Owner:
Type: defect (bug) | adamsilverstein
Priority: normal | Status: closed
Component: REST API | Milestone: 4.9
Severity: normal | Version: 4.7.4
Keywords: has-patch has-unit-tests commit | Resolution: fixed
| Focuses: javascript,
| rest-api
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"41657"]:
{{{
#!CommitTicketReference repository="" revision="41657"
REST API JavaScript Client: improve support for model deletion/trash.
Update the way and location the JavaScript client determines which
models/endpoints require the `force=true` parameter when being deleted to
avoid a `rest_trash_not_supported` error. Identify models with endpoints
that support DELETE, excluding those that support the trash (posts and
pages by default). Also, move the check into the default
`wp.api.WPApiBaseModel.initialize()` function.
Props caercam, euthelup.
Fixes #40672.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40672#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list