[wp-trac] [WordPress Trac] #16814: WP_Query doesn't check orderby for meta_query

WordPress Trac noreply at wordpress.org
Wed Oct 8 14:35:16 UTC 2014


#16814: WP_Query doesn't check orderby for meta_query
------------------------------+-----------------------
 Reporter:  dalesaurus        |       Owner:
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  4.1
Component:  Query             |     Version:  3.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------

Comment (by kovshenin):

 Replying to [comment:9 boonebgorges]: Your patch introduced a
 `$primary_meta_query` variable but it's not used. Was the intent to use
 that instead of `$meta_query` and avoid confusion between `$meta_query`,
 `$this->meta_query` and `$this->get('meta_query')`?

 In [attachment:16814.3.diff] I also changed `$meta_key` to
 `$primary_meta_key` and `$meta_type` to `$sql_type`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16814#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list