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

WordPress Trac noreply at wordpress.org
Sun Feb 9 22:11:57 UTC 2014


#25538: WP_Query: OR relation breaks orderby meta_value
----------------------------------------+------------------
 Reporter:  darrengrant                 |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  3.9
Component:  Query                       |     Version:
 Severity:  major                       |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+------------------
Changes (by jackreichert):

 * keywords:  needs-patch needs-unit-tests => needs-unit-tests has-patch


Comment:

 It turns out the problem was in wp-includes/meta.php.

 My solution was to pull the meta_key equation outside of the meta_value OR
 condition.

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


More information about the wp-trac mailing list