mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Just pass meta type to get_meta_sql(). See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16143 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -468,7 +468,7 @@ class WP_User_Query extends WP_Object_Query {
|
||||
}
|
||||
|
||||
if ( !empty( $qv['meta_query'] ) ) {
|
||||
$clauses = $this->get_meta_sql( $qv['meta_query'], $wpdb->users, 'ID', $wpdb->usermeta, 'user_id' );
|
||||
$clauses = $this->get_meta_sql( $qv['meta_query'], 'user', $wpdb->users, 'ID' );
|
||||
$this->query_from .= $clauses['join'];
|
||||
$this->query_where .= $clauses['where'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user