From 48d0ec3c437729362dd16d5fcc14d26d48dcc2eb Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 1 May 2005 19:21:42 +0000 Subject: [PATCH] Texturize tweaks git-svn-id: http://svn.automattic.com/wordpress/trunk@2578 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 77bbe22a6..bab767a10 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -10,8 +10,9 @@ function wptexturize($text) { if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag $curl = str_replace('---', '—', $curl); - $curl = preg_replace('/(\s)--(\s)/', '$1—$2', $curl); + $curl = str_replace(' -- ', ' — ', $curl); $curl = str_replace('--', '–', $curl); + $curl = str_replace('xn–', 'xn--', $curl); $curl = str_replace('...', '…', $curl); $curl = str_replace('``', '“', $curl);