diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index b9ff720f73..fd47198e0e 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -52,6 +52,8 @@ function wptexturize($text) { function clean_pre($text) { $text = str_replace('
', '', $text); + $text = str_replace('

', "\n", $text); + $text = str_replace('

', '', $text); return $text; }