From be058a1058f333ba1069a00a5b2f208a6dc90537 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 25 May 2004 04:33:37 +0000 Subject: [PATCH] Fix for unencoded ampersands. When did we lose this? git-svn-id: https://develop.svn.wordpress.org/trunk@1361 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-formatting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 277920c2a6..5b9ab97f1c 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -43,6 +43,7 @@ function wptexturize($text) { } else { $next = true; } + $curl = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $curl); $output .= $curl; } return $output; @@ -413,4 +414,4 @@ function get_date_from_gmt($string) { return $string_localtime; } -?> +?> \ No newline at end of file