Add self_link filter to self_link(). props josephscott. fixes #10434.
git-svn-id: https://develop.svn.wordpress.org/trunk@23521 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dc5bfd4977
commit
9d885adce3
|
@ -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'] ) ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue