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; }