Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3/src/wp-includes/formatting.php

    r33624 r34024  
    597597
    598598    // Restore newlines in all elements.
    599     $pee = str_replace( " <!-- wpnl --> ", "\n", $pee );
     599    if ( false !== strpos( $pee, '<!-- wpnl -->' ) ) {
     600        $pee = str_replace( array( ' <!-- wpnl --> ', '<!-- wpnl -->' ), "\n", $pee );
     601    }
    600602
    601603    return $pee;
Note: See TracChangeset for help on using the changeset viewer.