Use is_ssl() in self_link(). Fixes #19563
git-svn-id: http://svn.automattic.com/wordpress/trunk@19598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
31e5be0b66
commit
2ca702c17b
|
@ -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