Match the exact role name when counting users in a role. Props 082net. fixes #12693
git-svn-id: https://develop.svn.wordpress.org/trunk@19735 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d2306a693b
commit
2aa4b228e3
@ -854,7 +854,7 @@ function count_users($strategy = 'time') {
|
||||
// Build a CPU-intensive query that will return concise information.
|
||||
$select_count = array();
|
||||
foreach ( $avail_roles as $this_role => $name ) {
|
||||
$select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%" . like_escape($this_role) . "%', false))";
|
||||
$select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%\"" . like_escape( $this_role ) . "\"%', false))";
|
||||
}
|
||||
$select_count = implode(', ', $select_count);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user