[wp-trac] [WordPress Trac] #21683: Choose the relationship between the meta_query and what it's pulled into (AND/OR)
WordPress Trac
noreply at wordpress.org
Fri Aug 9 20:00:23 UTC 2013
#21683: Choose the relationship between the meta_query and what it's pulled into
(AND/OR)
-------------------------+----------------------
Reporter: sc0ttkclark | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 3.4.1
Severity: normal | Resolution: wontfix
Keywords: has-patch |
-------------------------+----------------------
Changes (by wonderboymusic):
* keywords: dev-feedback has-patch => has-patch
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
I think this is better accomplished with a `LEFT JOIN` - I added a patch
here #19653. The reason for an `OR` is because you want posts that
potentially have a meta key/value but don't care if they don't? That's a
`LEFT JOIN`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21683#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list