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