Deprecate the rest_enabled filter
|Reported by:||pento||Owned by:||pento|
|Component:||REST API||Keywords:||needs-docs needs-dev-note commit has-unit-tests has-patch|
With the introduction of Core functionality that relies on the REST API existing (#38342 and #38343), being able to turn off the REST API is roughly the equivalent of being able to turn off admin-ajax.php - something that will break your site.
As more Dashboard (and plugin!) functionality comes to rely on the REST API, it's irresponsible of us to provide a method for disabling the REST API entirely.
I'd also be inclined to throw a _doing_it_wrong if anything is actually attached to the rest_enabled filter.
Change History (19)
- Keywords commit has-unit-tests has-patch added; needs-patch needs-unit-tests removed