Make WordPress Core

Ticket #24176: 24176.2.diff

File 24176.2.diff, 1.2 KB (added by SergeyBiryukov, 11 years ago)
  • wp-includes/post-formats.php

     
    730730        $quote = get_content_quote( $content, true );
    731731        $post->split_content = $content;
    732732
    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 . '.';
    734740                $quote = sprintf( '<blockquote>%s</blockquote>', wpautop( $quote ) );
     741        }
    735742
    736743        $meta = get_post_format_meta( $post->ID );
    737744
    738745        if ( ! empty( $meta['quote_source_name'] ) ) {
    739746                $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( '&#8212;', 'em dash' ) . '&#160;' . $source;
    740748                $quote .= sprintf( '<figcaption class="quote-caption">%s</figcaption>', $source );
    741749        }
    742750