From ca314e4aa1da2bc52787acc979d7c26e0169964c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 7 Sep 2006 00:33:05 +0000 Subject: [PATCH] Recognize paragraph tags with attributes when stripping breaks. Props rockinfree. fixes #1706 git-svn-id: https://develop.svn.wordpress.org/trunk@4167 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 41fd3b92de..0f5cc74aba 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -76,7 +76,7 @@ function wpautop($pee, $br = 1) { $pee = str_replace('', "\n", $pee); } $pee = preg_replace('!(]*>)\s*
!', "$1", $pee); - $pee = preg_replace('!
(\s*)!', '$1', $pee); + $pee = preg_replace('!
(\s*]*>)!', '$1', $pee); $pee = preg_replace('!()(.*?)!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '' ", $pee); return $pee;