Exclude <tt> from formatting. props JulienV. fixes #8321

git-svn-id: http://svn.automattic.com/wordpress/trunk@11313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2009-05-12 22:51:24 +00:00
parent bdf8e8fb38
commit 5f17b95d0f

View File

@ -58,7 +58,7 @@ function wptexturize($text) {
$curl = str_replace($static_characters, $static_replacements, $curl); $curl = str_replace($static_characters, $static_replacements, $curl);
// regular expressions // regular expressions
$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl); $curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
} elseif (strpos($curl, '<code') !== false || strpos($curl, '<kbd') !== false || strpos($curl, '<style') !== false || strpos($curl, '<script') !== false) { } elseif (strpos($curl, '<tt') !== false || strpos($curl, '<code') !== false || strpos($curl, '<kbd') !== false || strpos($curl, '<style') !== false || strpos($curl, '<script') !== false) {
$next = false; $next = false;
} elseif (strpos($curl, '<pre') !== false) { } elseif (strpos($curl, '<pre') !== false) {
$has_pre_parent = true; $has_pre_parent = true;