[wp-trac] [WordPress Trac] #39494: Make it possible for taxonomy query to include children in REST API
WordPress Trac
noreply at wordpress.org
Tue Mar 20 20:29:40 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):
Got it, @birgire, thanks for the clarification. :)
I chatted with @timothyblynjacobs and he pointed out that both the title
(1) and content (2) accept either a string or object and disable
sanitization and validation to do so. It would be great if we could use
`oneOf` per schema convention, but that isn't supported, yet. Hopefully
another ticket will come down the road to improve that.
In the next couple days I'll take your first patch and give that a go!
Footnotes:
1. https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-
api/endpoints/class-wp-rest-posts-controller.php#L1901
2. https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-
api/endpoints/class-wp-rest-posts-controller.php#L1926
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39494#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list