[wp-trac] [WordPress Trac] #18401: Passing array as 'value' to 'meta_query' yields failed SQL request
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 14 10:17:14 UTC 2011
#18401: Passing array as 'value' to 'meta_query' yields failed SQL request
--------------------------+------------------------------
Reporter: Doggie52 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by johnbillion):
IIRC if you specify an array for the value parameter, you need to specify
the compare parameter too (eg. IN, NOT IN, BETWEEN) else it defaults to
'='.
Maybe the compare parameter should default to IN if an array is passed as
the value parameter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18401#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list