Ticket #40587: 40587.2.diff
File 40587.2.diff, 1000 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/link-template.php
560 560 * @param string $feed Optional. Feed type. Default empty. 561 561 */ 562 562 function the_feed_link( $anchor, $feed = '' ) { 563 $link = '<a href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor. '</a>';563 $link = '<a rel="alternate" type="' . esc_attr( feed_content_type( $feed ) ) . '" href="' . esc_url( get_feed_link( $feed ) ) . '">' . esc_html( $anchor ) . '</a>'; 564 564 565 565 /** 566 566 * Filters the feed link anchor tag. … … 699 699 $link_text = __('Comments Feed'); 700 700 } 701 701 702 $link = '<a href="' . esc_url( $url ) . '">' . $link_text. '</a>';702 $link = '<a rel="alternate" type="' . esc_attr( feed_content_type( $feed ) ) . '" href="' . esc_url( $url ) . '">' . esc_html( $link_text ) . '</a>'; 703 703 /** 704 704 * Filters the post comment feed link anchor tag. 705 705 *