Notice fixes see #7509 props DD32 and jacobsantos.

git-svn-id: https://develop.svn.wordpress.org/trunk@8944 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-09-21 20:41:25 +00:00
parent e6d08d8092
commit 8e25586a4e
15 changed files with 91 additions and 26 deletions
+1 -1
View File
@@ -494,7 +494,7 @@ function prep_atom_text_construct($data) {
*/
function self_link() {
echo 'http'
. ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://'
. ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
. $_SERVER['HTTP_HOST']
. wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1);
}