Make WordPress Core

Ticket #40587: 40587.diff

File 40587.diff, 1016 bytes (added by henry.wright, 8 years ago)
  • src/wp-includes/link-template.php

    diff --git src/wp-includes/link-template.php src/wp-includes/link-template.php
    index 4adc6c9..08d7db1 100644
    function get_day_link($year, $month, $day) { 
    560560 * @param string $feed   Optional. Feed type. Default empty.
    561561 */
    562562function the_feed_link( $anchor, $feed = '' ) {
    563         $link = '<a href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor . '</a>';
     563        $link = '<a rel="alternate" type="application/rss+xml" href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor . '</a>';
    564564
    565565        /**
    566566         * Filters the feed link anchor tag.
    function post_comments_feed_link( $link_text = '', $post_id = '', $feed = '' ) { 
    699699                $link_text = __('Comments Feed');
    700700        }
    701701
    702         $link = '<a href="' . esc_url( $url ) . '">' . $link_text . '</a>';
     702        $link = '<a rel="alternate" type="application/rss+xml" href="' . esc_url( $url ) . '">' . $link_text . '</a>';
    703703        /**
    704704         * Filters the post comment feed link anchor tag.
    705705         *