WordPress.org

Make WordPress Core

Ticket #19210: feed_filter_fix_clean.patch

File feed_filter_fix_clean.patch, 523 bytes (added by MarcusPope, 3 years ago)

Added filters to comments_link and comment_link functions in feed.php

  • www\wp-includes\feed.php

    old new  
    196196 * @return none 
    197197 */ 
    198198function comments_link_feed() { 
    199         echo esc_url( get_comments_link() ); 
     199        echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) ); 
    200200} 
    201201 
    202202/** 
     
    237237 * @since 1.5.0 
    238238 */ 
    239239function comment_link() { 
    240         echo esc_url( get_comment_link() ); 
     240        echo esc_url( apply_filters( 'comment_link', get_comment_link() ) ); 
    241241} 
    242242 
    243243/**