[wp-trac] [WordPress Trac] #39494: Make it possible for taxonomy query to include children in REST API
WordPress Trac
noreply at wordpress.org
Tue May 9 00:42:09 UTC 2017
#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: 4.8.1
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: rest-api
------------------------------------------+-----------------------
Comment (by jason_the_adams):
Here's a patch. It's note quite working yet, but I need some other eyes on
this.
Presently the unit test isn't working, but I'm baffled as to why. Also,
it's breaking another unit test, but I'm also unsure as to why that one is
being affected (the test mostly works, but fails where it expects an
error).
I'm also wondering if this should be applied to the exclude portion of the
taxonomy code as well so folks can set `include_children` there as well.
Thank you for helping me think through this in slack, @jnylen0
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39494#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list