diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index bb6ea45632..cc5e76bdb5 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -70,7 +70,11 @@ function wpautop($pee, $br = 1) { $pee = str_replace('
', '', $pee); $pee = preg_replace('!\s*(?(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|hr|pre|select|form|blockquote|address|math|p|h[1-6])[^>]*>)!', "$1", $pee); $pee = preg_replace('!(?(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6])[^>]*>)\s*
!', "$1", $pee); - if ($br) $pee = preg_replace('|(?)\s*\n|', "