Revert [12460] for now while we consider a better fix. See #10041
git-svn-id: http://svn.automattic.com/wordpress/trunk@12957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7a77e674ac
commit
530f9273a7
|
@ -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