diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php index f83e08a318..b1b82ec0bd 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -340,15 +340,12 @@ function post_formats_compat( $content, $id = 0 ) { case 'quote': if ( ! empty( $meta['quote'] ) && ! stristr( $content, $meta['quote'] ) ) { - $format_output .= sprintf( '
%s', $meta['quote'] ); + $quote = sprintf( '
%s', wpautop( $meta['quote'] ) ); if ( ! empty( $meta['quote_source'] ) ) { - $format_output .= sprintf( - '%s', - ! empty( $meta['url'] ) ? - sprintf( '%s', esc_url( $meta['url'] ), $meta['quote_source'] ) : - $meta['quote_source'] - ); + $source = ( empty( $quote_meta['url'] ) ) ? $meta['quote_source'] : sprintf( '%s', esc_url( $meta['url'] ), $meta['quote_source'] ); + $quote .= sprintf( '