[wp-trac] [WordPress Trac] #39494: Make it possible for taxonomy query to include children in REST API
WordPress Trac
noreply at wordpress.org
Fri Mar 16 16:08:00 UTC 2018
#39494: Make it possible for taxonomy query to include children in REST API
-----------------------------+-----------------------------
Reporter: jason_the_adams | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-testing | Focuses: rest-api
-----------------------------+-----------------------------
Comment (by jason_the_adams):
Great work, @birgire. I'm still conflicted at the idea of breaking out
another parameter. Seems redundant to have two parameters that have to do
with querying the resource based on taxonomy.
It seems like the biggest limiter here is
`WP_REST_Posts_Controller::get_collection_params()` and the inability to
defined a mixed schema?
From the API side, I suppose this all makes sense. From an organizational
standpoint, it feels janky to start building out multiple taxonomy
parameters merely based on ''how'' the taxonomy is being queried. But
maybe not?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39494#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list