Make WordPress Core


Ignore:
Timestamp:
05/26/2010 05:47:29 PM (16 years ago)
Author:
westi
Message:

Some more url escaping in feeds. See #13555.

File:
1 edited

Legend:

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

    r14949 r14950  
    3535                <title><?php the_title_rss() ?></title>
    3636                <link><?php the_permalink_rss() ?></link>
    37                 <comments><?php comments_link(); ?></comments>
     37                <comments><?php comments_link_feed(); ?></comments>
    3838                <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    3939                <dc:creator><?php the_author() ?></dc:creator>
     
    5151        <?php endif; ?>
    5252<?php endif; ?>
    53                 <wfw:commentRss><?php echo get_post_comments_feed_link(null, 'rss2'); ?></wfw:commentRss>
     53                <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
    5454                <slash:comments><?php echo get_comments_number(); ?></slash:comments>
    5555<?php rss_enclosure(); ?>
Note: See TracChangeset for help on using the changeset viewer.