From efcd47e994da7d502d10c26fb585a04a56c1bbc1 Mon Sep 17 00:00:00 2001 From: emc3 Date: Thu, 11 Sep 2003 15:27:26 +0000 Subject: [PATCH] Added checks for definition list (dl/dt/dd) tags to wpautop. git-svn-id: http://svn.automattic.com/wordpress/trunk@366 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 2c4caec5d..2e73bb087 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -79,7 +79,7 @@ function wpautop($pee, $br=1) { $pee = preg_replace('!

\s*(]*>)!', "$1", $pee); $pee = preg_replace('!()\s*

!', "$1", $pee); if ($br) $pee = preg_replace('|(?)\s*\n|', "
\n", $pee); // optionally make line breaks - $pee = preg_replace('!(]*>)\s*
!', "$1", $pee); + $pee = preg_replace('!(]*>)\s*
!', "$1", $pee); $pee = preg_replace('!
(\s*)!', '$1', $pee); $pee = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $pee);