summaryrefslogtreecommitdiffstats
path: root/wp-includes/link-template.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/link-template.php')
-rw-r--r--wp-includes/link-template.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php
index 9875356..1a07d72 100644
--- a/wp-includes/link-template.php
+++ b/wp-includes/link-template.php
@@ -781,7 +781,9 @@ function get_shortcut_link() {
function site_url($path = '', $scheme = null) {
// should the list of allowed schemes be maintained elsewhere?
if ( !in_array($scheme, array('http', 'https')) ) {
- if ( ('login' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) )
+ if ( ('login_post' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) )
+ $scheme = 'https';
+ elseif ( ('login' == $scheme) && ( force_ssl_admin() ) )
$scheme = 'https';
elseif ( ('admin' == $scheme) && force_ssl_admin() )
$scheme = 'https';