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
This commit is contained in:
parent
0ee1cb3046
commit
b7d3166e90
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in New Issue