From ec9016aaca8efebd828bfbbab629ecced3bc7bfe Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 4 Feb 2010 21:40:02 +0000 Subject: [PATCH] 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 --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 39b3a03bfb..bfcdc3dc7b 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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); } /**