From b680691cef682a0bd15634fe8d893c92c73bf684 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 16 Feb 2004 03:02:25 +0000 Subject: [PATCH] Texturize tweak. git-svn-id: https://develop.svn.wordpress.org/trunk@875 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 65dd4aa3ba..6952585d0c 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);