Ticket #24243: 24243.1.diff
File 24243.1.diff, 997 bytes (added by , 11 years ago) |
---|
-
wp-includes/post-formats.php
727 727 * @since 3.6.0 728 728 * 729 729 * @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. 730 732 * 731 733 * @param object $post (optional) A reference to the post object, falls back to get_post(). 732 734 * @return string The quote html. … … 749 751 750 752 if ( ! empty( $meta['quote_source_name'] ) ) { 751 753 $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( '—', 'em dash' ) ) . ' ' . $source; 752 755 $quote .= sprintf( '<figcaption class="quote-caption">%s</figcaption>', $source ); 753 756 } 754 757