[wp-trac] [WordPress Trac] #25284: Support tax queries using term_taxonomy_id without specifying a taxonomy
WordPress Trac
noreply at wordpress.org
Fri May 23 19:58:54 UTC 2014
#25284: Support tax queries using term_taxonomy_id without specifying a taxonomy
----------------------------------------+-----------------------------
Reporter: helen | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.0
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"28562"]:
{{{
#!CommitTicketReference repository="" revision="28562"
When adding queries to `tax_query`: if the query's `field` is
`term_taxonomy_id`, don't require `taxonomy` to be specified. In
`WP_Tax_Query::transform_query()`, `$query['taxonomy']` is never checked
for the 'term_taxonomy_id' `case` because 'term_taxonomy_id' is the
primary key being looked up.
Adds unit tests.
Props helen.
Fixes #25284.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25284#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list