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:
westi 2010-02-04 21:40:02 +00:00
parent 7a77e674ac
commit 530f9273a7
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. * @return string text, safe for inclusion in LIKE query.
*/ */
function like_escape($text) { function like_escape($text) {
return addcslashes($text, '\\%_'); return str_replace(array("%", "_"), array("\\%", "\\_"), $text);
} }
/** /**