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

git-svn-id: https://develop.svn.wordpress.org/trunk@11313 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2009-05-12 22:51:24 +00:00
parent a2bf4db52b
commit aeb9272a1c
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ function wptexturize($text) {
$curl = str_replace($static_characters, $static_replacements, $curl);
// regular expressions
$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;
} elseif (strpos($curl, '<pre') !== false) {
$has_pre_parent = true;