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:
scribu 2010-10-28 13:26:16 +00:00
parent 3365e10951
commit 35362272f1

View File

@ -460,7 +460,7 @@ class WP_User_Query extends WP_Object_Query {
$cap_meta_query['key'] = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';
if ( $role ) {
$cap_meta_query['value'] = $role;
$cap_meta_query['value'] = '"' . $role . '"';
$cap_meta_query['compare'] = 'like';
}