From 22c80c1a99eb3f42f322c014f110455b638f7b74 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 3 May 2013 19:08:47 +0000 Subject: [PATCH] Add a 'quote_source_format' filter and make the default an em-dash and a space preceding the source. fixes #24243 git-svn-id: http://core.svn.wordpress.org/trunk@24170 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-formats.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php index f5f03b4c5a..9a9348d244 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -727,6 +727,7 @@ function get_content_quote( &$content, $remove = false, $replace = '' ) { * @since 3.6.0 * * @uses get_content_quote() + * @uses apply_filters() Calls 'quote_source_format' filter to allow changing the typographical mark added to the quote source (em-dash prefix, by default) * * @param object $post (optional) A reference to the post object, falls back to get_post(). * @return string The quote html. @@ -749,6 +750,7 @@ function get_the_post_format_quote( &$post = null ) { if ( ! empty( $meta['quote_source_name'] ) ) { $source = ( empty( $meta['quote_source_url'] ) ) ? $meta['quote_source_name'] : sprintf( '%s', esc_url( $meta['quote_source_url'] ), $meta['quote_source_name'] ); + $source = sprintf( apply_filters( 'quote_source_format', __( '— %s' ) ), $source ); $quote .= sprintf( '
%s
', $source ); }