Make WordPress Core


Ignore:
Timestamp:
10/09/2010 10:48:13 AM (14 years ago)
Author:
scribu
Message:

Get rid of redundant $this->meta_query. See #14645

File:
1 edited

Legend:

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

    r15723 r15766  
    459459            }
    460460
    461             $this->meta_query[] = $cap_meta_query;
    462         }
    463 
    464         list( $meta_join, $meta_where ) = $this->get_meta_sql( $wpdb->users, 'ID', $wpdb->usermeta, 'user_id' );
     461            $qv['meta_query'][] = $cap_meta_query;
     462        }
     463
     464        list( $meta_join, $meta_where ) = $this->get_meta_sql( $qv['meta_query'], $wpdb->users, 'ID', $wpdb->usermeta, 'user_id' );
    465465        $this->query_from .= $meta_join;
    466466        $this->query_where .= $meta_where;
Note: See TracChangeset for help on using the changeset viewer.