Make WordPress Core


Ignore:
Timestamp:
11/07/2012 07:56:10 PM (13 years ago)
Author:
nacin
Message:

Don't return encoded ampersands from get_post_comments_feed_link() to avoid canonical redirect issues. Apply esc_url() when appropriate.

props markjaquith, SergeyBiryukov. fixes #21841.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-atom.php

    r21289 r22431  
    4949<?php do_action('atom_entry'); ?>
    5050        <link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
    51         <link rel="replies" type="application/atom+xml" href="<?php echo get_post_comments_feed_link(0,'atom') ?>" thr:count="<?php echo get_comments_number()?>"/>
     51        <link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link(0, 'atom') ); ?>" thr:count="<?php echo get_comments_number()?>"/>
    5252        <thr:total><?php echo get_comments_number()?></thr:total>
    5353    </entry>
Note: See TracChangeset for help on using the changeset viewer.