WordPress.org

Make WordPress Core

Changeset 15721


Ignore:
Timestamp:
10/04/2010 08:19:21 PM (9 years ago)
Author:
scribu
Message:

Put the simple meta query first, so that orderby=meta_value works even when using 'meta_query'. See #15031

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r15715 r15721  
    564564
    565565        if ( !empty( $meta_query ) ) {
    566             $this->meta_query[] = $meta_query;
     566            array_unshift( $this->meta_query, $meta_query );
    567567        }
    568568    }
Note: See TracChangeset for help on using the changeset viewer.