From b7d3166e901ab05c0925a80b1dba8e11e6746ac3 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 17 Jan 2014 09:53:09 +0000 Subject: [PATCH] Use the_title_attribute() in feed_links_extra(), rather than get_the_title(). props c3mdigital. fixes #15046. Built from https://develop.svn.wordpress.org/trunk@26975 git-svn-id: http://core.svn.wordpress.org/trunk@26854 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index dedf27b57f..f6f226018b 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1702,7 +1702,7 @@ function feed_links_extra( $args = array() ) { $post = get_post( $id ); if ( comments_open() || pings_open() || $post->comment_count > 0 ) { - $title = sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], esc_html( get_the_title() ) ); + $title = sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], the_title_attribute( array( 'echo' => false ) ) ); $href = get_post_comments_feed_link( $post->ID ); } } elseif ( is_post_type_archive() ) {