Make WordPress Core


Ignore:
Timestamp:
03/06/2013 07:57:31 PM (11 years ago)
Author:
nacin
Message:

Add filters to comments_link_feed(), comment_link(), and get_comments_link(). esc_url() the echoed output of comments_link().

props MarcusPope.
fixes #19210.

File:
1 edited

Legend:

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

    r23591 r23624  
    199199 */
    200200function comments_link_feed() {
    201     echo esc_url( get_comments_link() );
     201    echo esc_url( apply_filters( 'comments_link_feed', get_comments_link() ) );
    202202}
    203203
     
    240240 */
    241241function comment_link() {
    242     echo esc_url( get_comment_link() );
     242    echo esc_url( apply_filters( 'comment_link', get_comment_link() ) );
    243243}
    244244
Note: See TracChangeset for help on using the changeset viewer.