More precise role querying. Props johnbillion for initial patch. Fixes #12693
git-svn-id: https://develop.svn.wordpress.org/trunk@16048 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3365e10951
commit
35362272f1
@ -460,7 +460,7 @@ class WP_User_Query extends WP_Object_Query {
|
|||||||
$cap_meta_query['key'] = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';
|
$cap_meta_query['key'] = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';
|
||||||
|
|
||||||
if ( $role ) {
|
if ( $role ) {
|
||||||
$cap_meta_query['value'] = $role;
|
$cap_meta_query['value'] = '"' . $role . '"';
|
||||||
$cap_meta_query['compare'] = 'like';
|
$cap_meta_query['compare'] = 'like';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user