[wp-trac] [WordPress Trac] #34219: Move filters out of `rest_api_default_filters()`

WordPress Trac noreply at wordpress.org
Wed Oct 28 16:46:50 UTC 2015


#34219: Move filters out of `rest_api_default_filters()`
----------------------------+-----------------------
 Reporter:  swissspidy      |       Owner:  rmccue
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  4.4
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------

Comment (by joehoyle):

 I'm -1 on the usage of the `REST_REQUEST` constant to change behaviour. It
 makes it more difficult to test (as constants of course can't be toggled
 on / off), and would be more difficult for middleware / higher level
 plugins to use the REST API internally.

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


More information about the wp-trac mailing list