Use bool not string. Props TobiasBg. see #15170
git-svn-id: https://develop.svn.wordpress.org/trunk@16181 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef025261e7
commit
2bc9ef93c1
@ -448,7 +448,7 @@ class WP_User_Query extends WP_Object_Query {
|
||||
if ( $search ) {
|
||||
$wild = false;
|
||||
if ( false !== strpos($search, '*') ) {
|
||||
$wild = 'true';
|
||||
$wild = true;
|
||||
$search = trim($search, '*');
|
||||
}
|
||||
if ( false !== strpos( $search, '@') )
|
||||
|
Loading…
Reference in New Issue
Block a user