Only use SSL for login POST links if SSL logins are forced. Clear old cookies. see #7001

git-svn-id: https://develop.svn.wordpress.org/trunk@8197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-06-26 16:40:04 +00:00
parent 99fd205707
commit 1d3ec18c2d
3 changed files with 12 additions and 6 deletions
+3 -1
View File
@@ -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';