mirror of
git://develop.git.wordpress.org/
synced 2025-02-11 18:41:37 +01:00
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
Description
No description provided
Languages
PHP
81.4%
CSS
8.9%
JavaScript
8.1%
SCSS
0.9%
HTML
0.7%