[wp-trac] [WordPress Trac] #25538: WP_Query: OR relation breaks orderby meta_value

WordPress Trac noreply at wordpress.org
Wed Jun 4 05:47:20 UTC 2014


#25538: WP_Query: OR relation breaks orderby meta_value
---------------------------------+-----------------------------
 Reporter:  darrengrant          |       Owner:  wonderboymusic
     Type:  defect (bug)         |      Status:  closed
 Priority:  normal               |   Milestone:  Future Release
Component:  Query                |     Version:
 Severity:  major                |  Resolution:  fixed
 Keywords:  has-patch 4.0-early  |     Focuses:
---------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28659"]:
 {{{
 #!CommitTicketReference repository="" revision="28659"
 Fix SQL generation when `meta_query` has an `'relation' => 'OR'` for its
 queries and wants to `'orderby' => 'meta_value'`.

 Adds unit test.

 Props jackreichert.
 Fixes #25538.
 }}}

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


More information about the wp-trac mailing list