[wp-trac] [WordPress Trac] #17264: Duplicate posts returned if multiple meta_values match and no meta_key is set
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 28 02:49:20 UTC 2011
#17264: Duplicate posts returned if multiple meta_values match and no meta_key is
set
--------------------------+------------------
Reporter: trepmal | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.2
Component: Query | Version: 3.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Comment (by greuben):
On trunk we cannot query without 'key' arg in meta_query(generates invalid
sql)
Lines 495-496
{{{
if ( empty( $meta_key ) && empty( $meta_value ) )
continue;
}}}
One small bug there is $meta_value is always empty there.
Regression introduced in [17699] and [17674]
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17264#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list