[wp-trac] [WordPress Trac] #35381: Introduce `WP_Term_Query`

WordPress Trac noreply at wordpress.org
Tue Jun 7 22:23:50 UTC 2016


#35381: Introduce `WP_Term_Query`
----------------------------------------------------+------------------
 Reporter:  boonebgorges                            |       Owner:
     Type:  defect (bug)                            |      Status:  new
 Priority:  normal                                  |   Milestone:  4.6
Component:  Taxonomy                                |     Version:
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch needs-testing needs-dev-note  |     Focuses:
----------------------------------------------------+------------------

Comment (by spacedmonkey):

 I just noticed that wp_term_query can not query by term_taxonomy_id. I
 believe it should, as it would then allow us to use get_terms to replace
 the internals of functions like term_exists, get_term_by and the
 wp_tax_query. See the following lines.

 https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-
 tax-query.php#L617-L655

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


More information about the wp-trac mailing list