mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Get rid of redundant $this->meta_query. See #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15766 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -458,10 +458,10 @@ class WP_User_Query extends WP_Object_Query {
|
||||
$cap_meta_query['compare'] = 'like';
|
||||
}
|
||||
|
||||
$this->meta_query[] = $cap_meta_query;
|
||||
$qv['meta_query'][] = $cap_meta_query;
|
||||
}
|
||||
|
||||
list( $meta_join, $meta_where ) = $this->get_meta_sql( $wpdb->users, 'ID', $wpdb->usermeta, 'user_id' );
|
||||
list( $meta_join, $meta_where ) = $this->get_meta_sql( $qv['meta_query'], $wpdb->users, 'ID', $wpdb->usermeta, 'user_id' );
|
||||
$this->query_from .= $meta_join;
|
||||
$this->query_where .= $meta_where;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user