From a8d831a286e21e05032d05f1253e7c79d8836df5 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 16 Feb 2004 03:02:25 +0000 Subject: [PATCH] Texturize tweak. git-svn-id: http://svn.automattic.com/wordpress/trunk@875 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-formatting.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 65dd4aa3b..6952585d0 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -6,10 +6,7 @@ function wptexturize($text) { $stop = count($textarr); $next = true; // loop stuff for ($i = 0; $i < $stop; $i++) { $curl = $textarr[$i]; - if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Gecko')) { - $curl = str_replace('', '“', $curl); - $curl = str_replace('', '”', $curl); - } + if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag $curl = str_replace('---', '—', $curl); $curl = str_replace('--', '–', $curl);