diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 34d8652b2..e09afcfc8 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']) );