Ticket #8321: wp-formatting.diff
File wp-formatting.diff, 782 bytes (added by , 16 years ago) |
---|
-
wp-includes/formatting.php
old new 32 32 $curl = str_replace($static_characters, $static_replacements, $curl); 33 33 // regular expressions 34 34 $curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl); 35 } elseif (strpos($curl, '< code') !== false || strpos($curl, '<kbd') !== false || strpos($curl, '<style') !== false || strpos($curl, '<script') !== false) {35 } elseif (strpos($curl, '<tt') !== false || strpos($curl, '<code') !== false || strpos($curl, '<kbd') !== false || strpos($curl, '<style') !== false || strpos($curl, '<script') !== false) { 36 36 $next = false; 37 37 } elseif (strpos($curl, '<pre') !== false) { 38 38 $has_pre_parent = true;