Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#37074 closed enhancement (fixed)

WP_Term_Query should support querying by `term_taxonomy_id`

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: 4.6 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:


Breaking off from #37038 and other places where this has been mentioned.

get_terms() and WP_Term_Query support querying by 'name' and 'slug', but not 'term_taxonomy_id'. Let's fix this.

Change History (2)

#1 @boonebgorges
8 years ago

In 37682:

Tests: Move WP_Tax_Query tests to a more appropriate file.

The file they were living in is the rightful home of WP_Term_Query tests.

See #37074.

#2 @boonebgorges
8 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 37683:

Introduce term_taxonomy_id parameter for WP_Term_Query.

Allows the fetching of terms based on term_taxonomy_id, or an array of

Props spacedmonkey.
Fixes #37074.

Note: See TracTickets for help on using tickets.