mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-27 07:54:28 +00:00
Don't muddy <pre> pool
git-svn-id: https://develop.svn.wordpress.org/trunk@2056 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -52,6 +52,8 @@ function wptexturize($text) {
|
||||
|
||||
function clean_pre($text) {
|
||||
$text = str_replace('<br />', '', $text);
|
||||
$text = str_replace('<p>', "\n", $text);
|
||||
$text = str_replace('</p>', '', $text);
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user