From 5f0ae297712c7fcfd83a5a834f52a66182793676 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 16 Dec 2011 02:48:02 +0000 Subject: [PATCH] Use is_ssl() in self_link(). Fixes #19563 git-svn-id: https://develop.svn.wordpress.org/trunk@19598 602fd350-edb4-49c9-b593-d223f7449a82 --- 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']) );