[wp-trac] [WordPress Trac] #14645: Support for multiple meta_key => meta_value pairs in WP_Query
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 3 17:01:47 UTC 2010
#14645: Support for multiple meta_key => meta_value pairs in WP_Query
-------------------------+--------------------------------------------------
Reporter: joehoyle | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.1
Component: Query | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment(by aaroncampbell):
I can't seem to get this to work. It seems that at line 1392 of wp-
include/query.php `$this->meta_query` is always empty (doesn't seem to get
filled form `$qv`).
Also, `wp_array_slice_assoc()` uses isset instead of empty, and since
`meta_key` and `meta_value` are always set you always get an empty set
attached. It seems like the best solution would be to remove `meta_key`
and `meta_value` from `$keys` in `fill_query_vars()`. I'll look at the
other places it's used, but it might also be possible to use !empty
instead of isset and this part would be fixed.
I fixed these, but it's currently all mixed up with my patch for #9124.
I'll separate them and attach them to their respective tickets soon.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14645#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list