Use the_title_attribute() in feed_links_extra(), rather than get_the_title().
props c3mdigital. fixes #15046. git-svn-id: https://develop.svn.wordpress.org/trunk@26975 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5cb20092ce
commit
5d8627f6c9
|
@ -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