Make WordPress Core


Ignore:
Timestamp:
11/07/2012 07:56:10 PM (12 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/deprecated.php

    r22094 r22431  
    12161216function comments_rss() {
    12171217    _deprecated_function( __FUNCTION__, '2.2', 'get_post_comments_feed_link()' );
    1218     return get_post_comments_feed_link();
     1218    return esc_url( get_post_comments_feed_link() );
    12191219}
    12201220
Note: See TracChangeset for help on using the changeset viewer.