[wp-trac] [WordPress Trac] #25284: Support tax queries using term_taxonomy_id without specifying a taxonomy

WordPress Trac noreply at wordpress.org
Fri Nov 15 16:52:55 UTC 2013


#25284: Support tax queries using term_taxonomy_id without specifying a taxonomy
-------------------------------------+------------------------------
 Reporter:  helen                    |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Taxonomy                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------
Changes (by helen):

 * keywords:   => has-patch needs-testing


Comment:

 Having now worked on this and thought about it some more, I don't think
 `include_children` should work without `taxonomy` specified so long as we
 have shared terms. It's backward, and if you're taking the time to get the
 `term_taxonomy_id`, you should get the children that you want while you're
 at it.

 Patch includes the start of some unit tests. They need to be fleshed out
 to encompass all possible scenarios, and can probably be written better.
 Still new to that part.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25284#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list