From 2ca702c17b68e4b5c7dece6fa985bb10b97b7e70 Mon Sep 17 00:00:00 2001 From: dd32 Date: Fri, 16 Dec 2011 02:48:02 +0000 Subject: [PATCH] Use is_ssl() in self_link(). Fixes #19563 git-svn-id: http://svn.automattic.com/wordpress/trunk@19598 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 34d8652b20..e09afcfc83 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -489,8 +489,7 @@ function self_link() { $host = @parse_url(home_url()); $host = $host['host']; echo esc_url( - 'http' - . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://' + ( is_ssl() ? 'https' : 'http' ) . '://' . $host . stripslashes($_SERVER['REQUEST_URI']) );