mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Better default quote markup for post format fallbacks.
props obenland. see #23347 git-svn-id: https://develop.svn.wordpress.org/trunk@23822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3817df14ec
commit
a243e9653b
@ -340,15 +340,12 @@ function post_formats_compat( $content, $id = 0 ) {
|
||||
|
||||
case 'quote':
|
||||
if ( ! empty( $meta['quote'] ) && ! stristr( $content, $meta['quote'] ) ) {
|
||||
$format_output .= sprintf( '<blockquote>%s</blockquote>', $meta['quote'] );
|
||||
$quote = sprintf( '<blockquote>%s</blockquote>', wpautop( $meta['quote'] ) );
|
||||
if ( ! empty( $meta['quote_source'] ) ) {
|
||||
$format_output .= sprintf(
|
||||
'<cite>%s</cite>',
|
||||
! empty( $meta['url'] ) ?
|
||||
sprintf( '<a href="%s">%s</a>', esc_url( $meta['url'] ), $meta['quote_source'] ) :
|
||||
$meta['quote_source']
|
||||
);
|
||||
$source = ( empty( $quote_meta['url'] ) ) ? $meta['quote_source'] : sprintf( '<a href="%s">%s</a>', esc_url( $meta['url'] ), $meta['quote_source'] );
|
||||
$quote .= sprintf( '<figcaption class="quote-caption">%s</figcaption>', $source );
|
||||
}
|
||||
$format_output .= sprintf( '<figure class="quote">%s</figure>', $quote );
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user