mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Use clean_url() in self_link(), for 2.6.x
git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@9754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7f92e82609
commit
2ca70c2ea3
|
|
@ -495,10 +495,12 @@ function prep_atom_text_construct($data) {
|
|||
* @since 2.5
|
||||
*/
|
||||
function self_link() {
|
||||
echo 'http'
|
||||
. ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://'
|
||||
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