like_escape() search string. see #15764
git-svn-id: http://svn.automattic.com/wordpress/trunk@16858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad8e837dc2
commit
3f98ecf721
|
@ -547,7 +547,7 @@ class WP_User_Query {
|
|||
if ( 'ID' == $col )
|
||||
$searches[] = "$col = '$string'";
|
||||
else
|
||||
$searches[] = "$col LIKE '$string$wild_char'";
|
||||
$searches[] = "$col LIKE '" . like_escape($string) . "$wild_char'";
|
||||
}
|
||||
|
||||
return ' AND (' . implode(' OR ', $searches) . ')';
|
||||
|
|
Loading…
Reference in New Issue