mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
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:
parent
a2bf4db52b
commit
aeb9272a1c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user