mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
Formatting: fix removing line break placeholders from HTML comments at the end of wpautop().
Props miqrogroove. Fixes #33645 for 4.3. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@34024 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cf5fc77f6e
commit
3a7c781c87
@ -596,7 +596,9 @@ function wpautop( $pee, $br = true ) {
|
||||
$pee = str_replace(array_keys($pre_tags), array_values($pre_tags), $pee);
|
||||
|
||||
// Restore newlines in all elements.
|
||||
$pee = str_replace( " <!-- wpnl --> ", "\n", $pee );
|
||||
if ( false !== strpos( $pee, '<!-- wpnl -->' ) ) {
|
||||
$pee = str_replace( array( ' <!-- wpnl --> ', '<!-- wpnl -->' ), "\n", $pee );
|
||||
}
|
||||
|
||||
return $pee;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user