WordPress.org

Make WordPress Core


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

Some more url escaping in feeds. See #13555.

File:
1 edited

Legend:

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

    r12598 r14950  
    187187 */
    188188function the_permalink_rss() {
    189     echo apply_filters('the_permalink_rss', get_permalink());
     189    echo esc_url( apply_filters('the_permalink_rss', get_permalink() ));
     190}
     191
     192/**
     193 * Outputs the link to the comments for the current post in an xml safe way
     194 *
     195 * @since 3.0.0
     196 * @return none
     197 */
     198function comments_link_feed() {
     199    echo esc_url( get_comments_link() );
    190200}
    191201
Note: See TracChangeset for help on using the changeset viewer.