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

WordPress Trac noreply at wordpress.org
Sat Oct 22 13:34: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                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------

Comment (by pento):

 There are still options to disable it, but it will hopefully encourage a
 more considered approach. For example, returning an error on the
 `rest_authentication_errors` filter will prevent all REST API calls, but
 would hopefully encourage a little bit of nuance - returning an error when
 `! is_user_logged_in()`, for example.

 I'm inclined to think that an off switch like `rest_enabled` is too much
 of a blunt instrument.

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


More information about the wp-trac mailing list