Revert [12460] for now while we consider a better fix. See #10041

git-svn-id: https://develop.svn.wordpress.org/trunk@12957 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-02-04 21:40:02 +00:00
parent 55223d6753
commit ec9016aaca
1 changed files with 1 additions and 1 deletions

View File

@ -2414,7 +2414,7 @@ function tag_escape($tag_name) {
* @return string text, safe for inclusion in LIKE query.
*/
function like_escape($text) {
return addcslashes($text, '\\%_');
return str_replace(array("%", "_"), array("\\%", "\\_"), $text);
}
/**