[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
Wed Nov 2 21:43:43 UTC 2016


#38629: REST API: Allowed public or private WP_Query vars are lost in
`prepare_items_query()`
--------------------------+-----------------------
 Reporter:  rachelbaker   |       Owner:  rmccue
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------

Comment (by joehoyle):

 I don’t think they need to be supported, in the rest api. the most we
 should do is at least make it possible for devs to add their own query
 args. That would mean adding filters to the collection args, and then
 leaving it up to developers to implement their modification to the
 WP_Query via the `rest_$type_query`.

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


More information about the wp-trac mailing list