diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
index 8344d31432..5faac073da 100644
--- a/wp-includes/formatting.php
+++ b/wp-includes/formatting.php
@@ -32,7 +32,7 @@ function wptexturize($text) {
// regular expressions
$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
- } elseif (strstr($curl, '$1
\s*?
|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace + $pee = preg_replace( '|(
", $pee ); + $pee = preg_replace('!
([^<]+)\s*?((?:div|address|form)[^>]*>)!', "
$1
$2", $pee); + $pee = preg_replace( '||', "$1
", $pee ); $pee = preg_replace('!
\s*(?' . $allblocks . '[^>]*>)\s*
!', "$1", $pee); // don't pee all over a tag $pee = preg_replace("|(
]*)>|i', "", $pee); @@ -79,6 +82,7 @@ function wpautop($pee, $br = 1) { if ( strstr( $pee, '
)(.*?)!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '' ", $pee); $pee = preg_replace( "|\n$|", '', $pee ); +/**/ return $pee; }