Go to file
Adam Silverstein 0a964a48f8 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@42047 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-31 02:53:44 +00:00
src REST API: JS client - Enumerate endpoints supporting trash. 2017-10-31 02:53:44 +00:00
tests Multisite: Pass network object instead of ID to `pre_get_main_site_id`. 2017-10-30 19:55:09 +00:00
tools/i18n
.editorconfig
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
jsdoc.conf.json
package.json
phpunit.xml.dist
webpack.config.dev.js
webpack.config.prod.js
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php