Ticket #23347: 23347.7.diff
| File 23347.7.diff, 892 bytes (added by helen, 4 months 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'] ) ); 1964 1964 1965 $output .= $format_output;1965 $output .= "\n\n" . $format_output; 1966 1966 1967 1967 if ( ! empty( $compat['tag'] ) ) 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 }