WordPress.org

Make WordPress Core

Ticket #15046: feed_links_extra_the_title_attribute.1.patch

File feed_links_extra_the_title_attribute.1.patch, 703 bytes (added by drzraf, 4 years ago)
  • wp-includes/general-template.php

     
    16311631                $post = &get_post( $id = 0 ); 
    16321632 
    16331633                if ( comments_open() || pings_open() || $post->comment_count > 0 ) { 
    1634                         $title = esc_attr(sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], esc_html( get_the_title() ) )); 
     1634                        $title = esc_attr(sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], esc_html( the_title_attribute( 'echo=0' ) ) )); 
    16351635                        $href = get_post_comments_feed_link( $post->ID ); 
    16361636                } 
    16371637        } elseif ( is_category() ) {