like_escape() search string. see #15764
git-svn-id: https://develop.svn.wordpress.org/trunk@16858 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
523a810530
commit
181ab7185a
@ -547,7 +547,7 @@ class WP_User_Query {
|
|||||||
if ( 'ID' == $col )
|
if ( 'ID' == $col )
|
||||||
$searches[] = "$col = '$string'";
|
$searches[] = "$col = '$string'";
|
||||||
else
|
else
|
||||||
$searches[] = "$col LIKE '$string$wild_char'";
|
$searches[] = "$col LIKE '" . like_escape($string) . "$wild_char'";
|
||||||
}
|
}
|
||||||
|
|
||||||
return ' AND (' . implode(' OR ', $searches) . ')';
|
return ' AND (' . implode(' OR ', $searches) . ')';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user