Make WordPress Core

Ticket #24243: 24243.2.diff

File 24243.2.diff, 1.1 KB (added by markjaquith, 11 years ago)
  • wp-includes/post-formats.php

    diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php
    index f5f03b4..5b9ee3e 100644
    a b function get_content_quote( &$content, $remove = false, $replace = '' ) { 
    727727 * @since 3.6.0
    728728 *
    729729 * @uses get_content_quote()
     730 * @uses apply_filters() Calls 'quote_source_format' filter to allow changing the
     731 * the typographical mark added to the quote source (em-dash prefix, by default)
    730732 *
    731733 * @param object $post (optional) A reference to the post object, falls back to get_post().
    732734 * @return string The quote html.
    function get_the_post_format_quote( &$post = null ) { 
    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 = sprintf( apply_filters( 'quote_source_format', __( '&#8212;&#160;%s' ) ), $source );
    752755                $quote .= sprintf( '<figcaption class="quote-caption">%s</figcaption>', $source );
    753756        }
    754757