[wp-trac] [WordPress Trac] #24245: Convert category__and query into category__in when only one category passed in
WordPress Trac
noreply at wordpress.org
Thu May 2 07:03:30 UTC 2013
#24245: Convert category__and query into category__in when only one category passed
in
-------------------------+-----------------------------
Reporter: batmoo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
If a {{{category__and}}} query gets only one term passed in, it still
builds out the complex query required for the {{{AND}}} lookup, which can
be pretty expensive (#16706).
We should be smarter and automatically convert the query into a
{{{category__in}}} when {{{category__and}}} only gets passed in one
category.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24245>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list