[wp-trac] [WordPress Trac] #39494: Make it possible for taxonomy query to include children in REST API

WordPress Trac noreply at wordpress.org
Tue Feb 2 19:23:22 UTC 2021


#39494: Make it possible for taxonomy query to include children in REST API
-------------------------------------------------+-------------------------
 Reporter:  jason_the_adams                      |       Owner:  dlh
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.7
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  needs-testing has-patch has-unit-    |     Focuses:  rest-api
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50157" 50157]:
 {{{
 #!CommitTicketReference repository="" revision="50157"
 REST API: Allow for the posts endpoint include/exclude terms query to
 `include_children`.

 For example the `categories` or `categories_exclude` parameters can now
 optionally accept an object with a `terms` property that accepts the list
 of term ids and a new `include_children` property which controls the Tax
 Query `include_children` field.

 Props jason_the_adams, jnylen0, birgire, dlh.
 Fixes #39494.
 }}}

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


More information about the wp-trac mailing list