Ticket #23347: 23347.newline.diff
File 23347.newline.diff, 812 bytes (added by , 12 years ago) |
---|
-
wp-includes/formatting.php
1957 1957 $output = ''; 1958 1958 1959 1959 if ( ! empty( $content ) && $show_content && 'before' !== $compat['position'] ) 1960 $output .= $content . PHP_EOL . PHP_EOL;1960 $output .= $content . "\n\n"; 1961 1961 1962 1962 if ( ! empty( $compat['tag'] ) ) 1963 1963 $output .= sprintf( '<%s class="%s">', tag_escape( $compat['tag'] ), esc_attr( $compat['class'] ) ); … … 1968 1968 $output .= sprintf( '</%s>', tag_escape( $compat['tag'] ) ); 1969 1969 1970 1970 if ( ! empty( $content ) && $show_content && 'before' === $compat['position'] ) 1971 $output .= PHP_EOL . PHP_EOL. $content;1971 $output .= "\n\n" . $content; 1972 1972 1973 1973 return $output; 1974 1974 }