Make WordPress Core


Ignore:
Timestamp:
06/26/2008 04:40:04 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r8108 r8197  
    782782    // should the list of allowed schemes be maintained elsewhere?
    783783    if ( !in_array($scheme, array('http', 'https')) ) {
    784         if ( ('login' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) )
     784        if ( ('login_post' == $scheme) && ( force_ssl_login() || force_ssl_admin() ) )
     785            $scheme = 'https';
     786        elseif ( ('login' == $scheme) && ( force_ssl_admin() ) )
    785787            $scheme = 'https';
    786788        elseif ( ('admin' == $scheme) && force_ssl_admin() )
Note: See TracChangeset for help on using the changeset viewer.