Make WordPress Core


Ignore:
Timestamp:
03/27/2013 07:21:56 PM (12 years ago)
Author:
markjaquith
Message:

Better default quote markup for post format fallbacks.

props obenland. see #23347

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-formats.php

    r23819 r23822  
    341341        case 'quote':
    342342            if ( ! empty( $meta['quote'] ) && ! stristr( $content, $meta['quote'] ) ) {
    343                 $format_output .= sprintf( '<blockquote>%s</blockquote>', $meta['quote'] );
     343                $quote = sprintf( '<blockquote>%s</blockquote>', wpautop( $meta['quote'] ) );
    344344                if ( ! empty( $meta['quote_source'] ) ) {
    345                     $format_output .= sprintf(
    346                         '<cite>%s</cite>',
    347                         ! empty( $meta['url'] ) ?
    348                             sprintf( '<a href="%s">%s</a>', esc_url( $meta['url'] ), $meta['quote_source'] ) :
    349                             $meta['quote_source']
    350                     );
     345                    $source = ( empty( $quote_meta['url'] ) ) ? $meta['quote_source'] : sprintf( '<a href="%s">%s</a>', esc_url( $meta['url'] ), $meta['quote_source'] );
     346                    $quote .= sprintf( '<figcaption class="quote-caption">%s</figcaption>', $source );
    351347                }
     348                $format_output .= sprintf( '<figure class="quote">%s</figure>', $quote );
    352349            }
    353350            break;
Note: See TracChangeset for help on using the changeset viewer.