Use clean_url() in self_link(), for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@9753 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c51af5dec9
commit
fe5fb55c3b
|
@ -498,10 +498,12 @@ function prep_atom_text_construct($data) {
|
|||
* @since 2.5
|
||||
*/
|
||||
function self_link() {
|
||||
echo 'http'
|
||||
echo clean_url(
|
||||
'http'
|
||||
. ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
|
||||
. $_SERVER['HTTP_HOST']
|
||||
. wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1);
|
||||
. stripslashes($_SERVER['REQUEST_URI'])
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue