From ad2e5da6a00e1aa5653b12f8bfc763500f4dc61b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 28 Feb 2013 18:27:13 +0000 Subject: [PATCH] Add self_link filter to self_link(). props josephscott. fixes #10434. git-svn-id: http://core.svn.wordpress.org/trunk@23521 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index d4fe81f1d1..c0b2440825 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -488,7 +488,7 @@ function prep_atom_text_construct($data) { */ function self_link() { $host = @parse_url(home_url()); - echo esc_url( set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); + echo esc_url( apply_filters( 'self_link', set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ); } /**