[wp-trac] [WordPress Trac] #17011: Introduce 'relation' arg to meta_query
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 18 13:03:27 UTC 2011
#17011: Introduce 'relation' arg to meta_query
-------------------------------------+------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.2
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------
Comment (by scribu):
What's the deal with
{{{
$distinct = 'DISTINCT';
}}}
Also, it's cleaner to set $relation this way:
{{{
if ( isset( $meta_query['relation'] ) && strtoupper(
$meta_query['relation'] ) == 'OR' ) {
$relation = 'OR';
} else {
$relation = 'AND';
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17011#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list