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:
parent
cce319d088
commit
5f0ae29771
|
@ -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'])
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue