WordPress.org

Make WordPress Core

Changeset 23521


Ignore:
Timestamp:
02/28/2013 06:27:13 PM (5 years ago)
Author:
nacin
Message:

Add self_link filter to self_link(). props josephscott. fixes #10434.

File:
1 edited

Legend:

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

    r23416 r23521  
    489489function self_link() {
    490490    $host = @parse_url(home_url());
    491     echo esc_url( set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
     491    echo esc_url( apply_filters( 'self_link', set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
    492492}
    493493
Note: See TracChangeset for help on using the changeset viewer.