WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/01/2010 08:34:54 PM (10 years ago)
Author:
scribu
Message:

Just pass meta type to get_meta_sql(). See #15032

File:
1 edited

Legend:

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

    r16053 r16143  
    469469
    470470        if ( !empty( $qv['meta_query'] ) ) {
    471             $clauses = $this->get_meta_sql( $qv['meta_query'], $wpdb->users, 'ID', $wpdb->usermeta, 'user_id' );
     471            $clauses = $this->get_meta_sql( $qv['meta_query'], 'user', $wpdb->users, 'ID' );
    472472            $this->query_from .= $clauses['join'];
    473473            $this->query_where .= $clauses['where'];
Note: See TracChangeset for help on using the changeset viewer.