[wp-trac] [WordPress Trac] #38446: Deprecate the rest_enabled filter
WordPress Trac
noreply at wordpress.org
Tue Feb 7 17:06:29 UTC 2017
#38446: Deprecate the rest_enabled filter
-------------------------------------------------+-------------------------
Reporter: pento | Owner: pento
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 4.7
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: needs-docs needs-dev-note commit | Focuses:
has-unit-tests has-patch |
-------------------------------------------------+-------------------------
Comment (by dmchale):
Not sure what needs to be revisited? If you'd like to disable the REST API
to forward-facing site visitors you can use the code that @pento posted
above which is nearly identical to the [https://developer.wordpress.org
/rest-api/using-the-rest-api/frequently-asked-questions/#require-
authentication-for-all-requests example found in the REST API
documentation], or you can install the [https://wordpress.org/plugins
/disable-json-api/ plugin that does it for you]. You just can't use the
old `rest_enabled` filter anymore.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38446#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list