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:
dd32 2011-12-16 02:48:02 +00:00
parent 31e5be0b66
commit 2ca702c17b
1 changed files with 1 additions and 2 deletions

View File

@ -489,8 +489,7 @@ function self_link() {
$host = @parse_url(home_url()); $host = @parse_url(home_url());
$host = $host['host']; $host = $host['host'];
echo esc_url( echo esc_url(
'http' ( is_ssl() ? 'https' : 'http' ) . '://'
. ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
. $host . $host
. stripslashes($_SERVER['REQUEST_URI']) . stripslashes($_SERVER['REQUEST_URI'])
); );