[wp-trac] [WordPress Trac] #38629: REST API: Allowed public or private WP_Query vars are lost in `prepare_items_query()`
WordPress Trac
noreply at wordpress.org
Tue Nov 8 14:07:13 UTC 2016
#38629: REST API: Allowed public or private WP_Query vars are lost in
`prepare_items_query()`
--------------------------+-----------------------
Reporter: rachelbaker | Owner: joehoyle
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: REST API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Changes (by joehoyle):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"39162"]:
{{{
#!CommitTicketReference repository="" revision="39162"
REST API: Remove get_allowed_query_vars() now `filter` is gone.
Now all public query vars are not supoprted via `?filter` in the REST API,
we can remove the get_allowed_query_vars() method and filter. To provide
developers with a good altnerative to `filter`, the
`"rest_{$this->post_type}_collection_params"` filter has been added.
Props rmccue, rachelbacker, danielbachhuber.
Fixes #38629.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38629#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list