mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Use clean_url() in self_link(), for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@9753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61b2941eba
commit
19abe38f5a
@ -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
Block a user