From 2879a6219e2940f02eeb749d24c1139cb6f9aec7 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@4167 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;