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
This commit is contained in:
Andrew Nacin 2013-02-28 18:27:13 +00:00
parent 045159cb3d
commit ad2e5da6a0
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ function prep_atom_text_construct($data) {
*/ */
function self_link() { function self_link() {
$host = @parse_url(home_url()); $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'] ) ) ) );
} }
/** /**