From 9f4dc2e01b24f1f92c30099bc55c0c57afa38b78 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 6 Jun 2003 21:19:30 +0000 Subject: [PATCH] Ampersand fixer should be called outside of the texturize loop. git-svn-id: https://develop.svn.wordpress.org/trunk@174 602fd350-edb4-49c9-b593-d223f7449a82 --- b2-include/b2functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 79b8735ef7..5ad8a9a2eb 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -53,7 +53,6 @@ function wptexturize($text) { $curl = preg_replace("/\(r\)/i", '®', $curl); $curl = str_replace("''", '”', $curl); - $curl = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $curl); $curl = preg_replace('/(d+)x(\d+)/', "$1×$2", $curl); @@ -82,6 +81,8 @@ function wpautop($pee, $br=1) { $pee = preg_replace('!()
!', "$1", $pee); $pee = preg_replace('|

]*)>|i', "

", $pee); $pee = str_replace('

', '

', $pee); + $pee = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $pee); + return $pee; }