[wp-trac] [WordPress Trac] #21683: Choose the relationship between the meta_query and what it's pulled into (AND/OR)

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 27 09:31:50 UTC 2012


#21683: Choose the relationship between the meta_query and what it's pulled into
(AND/OR)
-------------------------------------------------+-------------------------
 Reporter:  sc0ttkclark                          |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Query                                |  Review
 Severity:  normal                               |     Version:  3.4.1
 Keywords:  dev-feedback has-patch reporter-     |  Resolution:
  feedback                                       |
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * keywords:  dev-feedback has-patch => dev-feedback has-patch reporter-
     feedback


Comment:

 If you set the 'query_relation' parameter to OR in a given query, are you
 sure it has the desired effect? It will fetch anything at all which
 matches your meta query, regardless of any of the other arguments such as
 post type, post status, etc. I believe it will also affect any query
 parameter that comes after the meta query in the SQL due to the placement
 of the OR.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21683#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list