Ticket #24176: 24176.2.diff
File 24176.2.diff, 1.2 KB (added by , 12 years ago) |
---|
-
wp-includes/post-formats.php
730 730 $quote = get_content_quote( $content, true ); 731 731 $post->split_content = $content; 732 732 733 if ( ! empty( $quote ) ) 733 if ( ! empty( $quote ) ) { 734 /* translators: opening curly double quote */ 735 $opening_quote = _x( '“', 'opening curly double quote' ); 736 /* translators: closing curly double quote */ 737 $closing_quote = _x( '”', 'closing curly double quote' ); 738 739 $quote = $opening_quote . rtrim( $quote, '.' ) . $closing_quote . '.'; 734 740 $quote = sprintf( '<blockquote>%s</blockquote>', wpautop( $quote ) ); 741 } 735 742 736 743 $meta = get_post_format_meta( $post->ID ); 737 744 738 745 if ( ! empty( $meta['quote_source_name'] ) ) { 739 746 $source = ( empty( $meta['quote_source_url'] ) ) ? $meta['quote_source_name'] : sprintf( '<a href="%s">%s</a>', esc_url( $meta['quote_source_url'] ), $meta['quote_source_name'] ); 747 $source = _x( '—', 'em dash' ) . ' ' . $source; 740 748 $quote .= sprintf( '<figcaption class="quote-caption">%s</figcaption>', $source ); 741 749 } 742 750