Make WordPress Core

Ticket #23347: 23347.newline.diff

File 23347.newline.diff, 812 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/formatting.php

     
    19571957        $output = '';
    19581958
    19591959        if ( ! empty( $content ) && $show_content && 'before' !== $compat['position'] )
    1960                 $output .= $content . PHP_EOL . PHP_EOL;
     1960                $output .= $content . "\n\n";
    19611961
    19621962        if ( ! empty( $compat['tag'] ) )
    19631963                $output .= sprintf( '<%s class="%s">', tag_escape( $compat['tag'] ), esc_attr( $compat['class'] ) );
     
    19681968                $output .= sprintf( '</%s>', tag_escape( $compat['tag'] ) );
    19691969
    19701970        if ( ! empty( $content ) && $show_content && 'before' === $compat['position'] )
    1971                 $output .= PHP_EOL . PHP_EOL . $content;
     1971                $output .= "\n\n" . $content;
    19721972
    19731973        return $output;
    19741974}