WordPress.org

Make WordPress Core

Ticket #6956: 6956.diff

File 6956.diff, 679 bytes (added by solarissmoke, 7 years ago)
  • wp-includes/link-template.php

     
    515515        $url = get_post_comments_feed_link($post_id, $feed);
    516516        if ( empty($link_text) )
    517517                $link_text = __('Comments Feed');
    518 
    519         echo apply_filters( 'post_comments_feed_link_html', "<a href='$url'>$link_text</a>", $post_id, $feed );
     518        $title = esc_html( sprintf( __('Comments Feed for %1$s'), get_the_title( $post_id ) ) );
     519        echo apply_filters( 'post_comments_feed_link_html', "<a href='$url' title='$title'>$link_text</a>", $post_id, $feed );
    520520}
    521521
    522522/**