625773bd8b
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 |
||
---|---|---|
.. | ||
tinymce | ||
api-request.js | ||
shortcode.js | ||
wp-api.js | ||
wp-hooks.js |