Wordpress/tests/qunit
Adam Silverstein 625773bd8b 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@41657 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-01 13:06:43 +00:00
..
fixtures Customize: Introduce drafting and scheduling for Customizer changesets. 2017-09-27 22:24:37 +00:00
vendor Customizer: Add QUnit tests for menus. 2015-08-03 19:27:27 +00:00
wp-admin/js Customize: Introduce drafting and scheduling for Customizer changesets. 2017-09-27 22:24:37 +00:00
wp-includes/js REST API JavaScript Client: improve support for model deletion/trash. 2017-10-01 13:06:43 +00:00
.jshintrc Various JSHint fixes. see #26446. 2014-02-08 00:51:14 +00:00
index.html Customize: Introduce drafting and scheduling for Customizer changesets. 2017-09-27 22:24:37 +00:00