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:
parent
55223d6753
commit
ec9016aaca
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user