WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 01:26:16 PM (9 years ago)
Author:
scribu
Message:

More precise role querying. Props johnbillion for initial patch. Fixes #12693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r16018 r16048  
    461461
    462462            if ( $role ) {
    463                 $cap_meta_query['value'] = $role;
     463                $cap_meta_query['value'] = '"' . $role . '"';
    464464                $cap_meta_query['compare'] = 'like';
    465465            }
Note: See TracChangeset for help on using the changeset viewer.