[wp-trac] [WordPress Trac] #38446: Deprecate the rest_enabled filter

WordPress Trac noreply at wordpress.org
Sat Oct 22 13:13:34 UTC 2016


#38446: Deprecate the rest_enabled filter
-------------------------+------------------------------------------
 Reporter:  pento        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  4.7
Component:  REST API     |    Version:
 Severity:  normal       |   Keywords:  needs-patch needs-unit-tests
  Focuses:               |
-------------------------+------------------------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38446>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list