WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24093, comment 31


Ignore:
Timestamp:
10/14/2014 03:25:05 AM (7 years ago)
Author:
boonebgorges
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24093, comment 31

    initial v1  
    553. The next time you see a clause that has a meta_key that already has an alias, check to see whether the $parent_query has OR as a relation. If so, use the existing alias.
    66
    7 This will break down when you get several generations deep, though. If you have a query like this, I don't think you can combine the 'foo' and 'foo1' tables in this kind of query:
     7This will break down when you get several generations deep, though. If you have a query like this, I don't think you can combine the 'foo' and 'foo1' tables, even though the $parent_query has relation=OR:
    88
    99{{{