[wp-trac] [WordPress Trac] #46459: Inconsistent behaviour in WP_Query with single category__and and tag__and query vars

WordPress Trac noreply at wordpress.org
Wed Mar 13 07:08:23 UTC 2019


#46459: Inconsistent behaviour in WP_Query with single category__and and tag__and
query vars
--------------------------+------------------------
 Reporter:  seanleavey    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by talldanwp):

 * status:  new => closed
 * version:  trunk =>
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 @seanleavey - It looks like the change made to `category__and` originally
 occurred in #25238.

 Some of the history of that change can be read at #16706. It appears to
 have been made as an optimization originally just to improve performance
 for categories. There was some intention to apply the changes more widely
 in that ticket and it looks like that should really have happened so that
 the edge-case for categories doesn't remain.

 I'll close this ticket in favour of #16706, where this workaround can
 likely be reverted in favour of a more complete solution.

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


More information about the wp-trac mailing list