Replace <br/> and <br> in addition to <br /> in clean_pre(). fixes #20400
git-svn-id: https://develop.svn.wordpress.org/trunk@20409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7fdf2d7412
commit
5d73d82fc2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user