Replace <br/> and <br> in addition to <br /> in clean_pre(). fixes #20400

git-svn-id: http://svn.automattic.com/wordpress/trunk@20409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2012-04-09 20:05:47 +00:00
parent 63818c06a2
commit 29f50a637a

View File

@ -3002,7 +3002,7 @@ function clean_pre($matches) {
else
$text = $matches;
$text = str_replace('<br />', '', $text);
$text = str_replace(array('<br />', '<br/>', '<br>'), array('', '', ''), $text);
$text = str_replace('<p>', "\n", $text);
$text = str_replace('</p>', '', $text);