Use is_ssl() in self_link(). Fixes #19563

git-svn-id: https://develop.svn.wordpress.org/trunk@19598 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2011-12-16 02:48:02 +00:00
parent cce319d088
commit 5f0ae29771
1 changed files with 1 additions and 2 deletions

View File

@ -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'])
);