mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
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:
parent
63818c06a2
commit
29f50a637a
@ -3002,7 +3002,7 @@ function clean_pre($matches) {
|
|||||||
else
|
else
|
||||||
$text = $matches;
|
$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>', "\n", $text);
|
||||||
$text = str_replace('</p>', '', $text);
|
$text = str_replace('</p>', '', $text);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user