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:
Ryan Boren 2010-12-10 15:57:48 +00:00
parent 523a810530
commit 181ab7185a

View File

@ -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) . ')';