[wp-trac] Re: [WordPress Trac] #9167: query_posts('meta_key=foo')
returns duplicate posts
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 19 17:10:54 GMT 2009
#9167: query_posts('meta_key=foo') returns duplicate posts
--------------------------+-------------------------------------------------
Reporter: scribu | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: General | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by filosofo):
Replying to [comment:12 mrmist]:
> Now, it may be that that is your intended result, but it probably isn't.
It is intentional, because the thrown-away information in this situation
is just the different meta_values.
If you're querying just by meta_key, then you don't care if there are
multiple meta_values. If you're querying by both meta_key and meta_value,
then there won't be multiple meta_values. So either way it doesn't
matter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9167#comment:14>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list