More precise role querying. Props johnbillion for initial patch. Fixes #12693
git-svn-id: http://svn.automattic.com/wordpress/trunk@16048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
39fceab5b4
commit
354845e683
|
@ -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