Changeset 4894
- Timestamp:
- 02/20/2007 05:41:39 AM (18 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/wp-includes/formatting.php
r4710 r4894 64 64 $pee = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "<p>$1</p>\n", $pee); // make paragraphs, including one at the end 65 65 $pee = preg_replace('|<p>\s*?</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace 66 $pee = preg_replace( '|<p>(<div[^>]*>\s*)|', "$1<p>", $pee );67 66 $pee = preg_replace('!<p>([^<]+)\s*?(</(?:div|address|form)[^>]*>)!', "<p>$1</p>$2", $pee); 68 67 $pee = preg_replace( '|<p>|', "$1<p>", $pee ); … … 83 82 $pee = preg_replace('!(<pre.*?>)(.*?)</pre>!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '</pre>' ", $pee); 84 83 $pee = preg_replace( "|\n</p>$|", '</p>', $pee ); 85 /**/ 84 86 85 return $pee; 87 86 } -
trunk/wp-includes/formatting.php
r4710 r4894 64 64 $pee = preg_replace('/\n?(.+?)(?:\n\s*\n|\z)/s', "<p>$1</p>\n", $pee); // make paragraphs, including one at the end 65 65 $pee = preg_replace('|<p>\s*?</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace 66 $pee = preg_replace( '|<p>(<div[^>]*>\s*)|', "$1<p>", $pee );67 66 $pee = preg_replace('!<p>([^<]+)\s*?(</(?:div|address|form)[^>]*>)!', "<p>$1</p>$2", $pee); 68 67 $pee = preg_replace( '|<p>|', "$1<p>", $pee ); … … 83 82 $pee = preg_replace('!(<pre.*?>)(.*?)</pre>!ise', " stripslashes('$1') . stripslashes(clean_pre('$2')) . '</pre>' ", $pee); 84 83 $pee = preg_replace( "|\n</p>$|", '</p>', $pee ); 85 /**/ 84 86 85 return $pee; 87 86 }
Note: See TracChangeset
for help on using the changeset viewer.