Make WordPress Core

Ticket #24243: 24243.1.diff

File 24243.1.diff, 997 bytes (added by lancewillett, 11 years ago)
  • wp-includes/post-formats.php

     
    727727 * @since 3.6.0
    728728 *
    729729 * @uses get_content_quote()
     730 * @uses apply_filters() Calls 'quote_source_dash' filter to allow removing or
     731 * changing the typographical mark appended to the quote source.
    730732 *
    731733 * @param object $post (optional) A reference to the post object, falls back to get_post().
    732734 * @return string The quote html.
     
    749751
    750752        if ( ! empty( $meta['quote_source_name'] ) ) {
    751753                $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'] );
     754                $source = apply_filters( 'quote_source_dash', _x( '&#8212;', 'em dash' ) ) . '&#160;' . $source;
    752755                $quote .= sprintf( '<figcaption class="quote-caption">%s</figcaption>', $source );
    753756        }
    754757