[wp-trac] [WordPress Trac] #38378: Remove the `filter` parameter in the Post Controller

WordPress Trac noreply at wordpress.org
Wed Oct 26 21:36:31 UTC 2016


#38378: Remove the `filter` parameter in the Post Controller
-------------------------------------+------------------------------
 Reporter:  websupporter             |       Owner:  rachelbaker
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  REST API                 |     Version:  trunk
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+------------------------------
Changes (by rachelbaker):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38968"]:
 {{{
 #!CommitTicketReference repository="" revision="38968"
 REST API: Remove experimental `filter` wrapper parameter from the Posts
 Controller class.

 Hiding WP_Query params under the filter key (instead of allowing them to
 be top-level params) was one of our biggest complaints from users of v1 of
 our REST API. This walks back the re-introduction of the `filter` param
 during Beta 15, which introduced an "inconsistent mess" and "exposing
 WP_Query through filter has and will continue to be difficult to support."
 See https://github.com/WP-API/WP-API/issues/2799.

 Props websupporter, rachelbaker.
 Fixes #38378.
 }}}

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


More information about the wp-trac mailing list