Make WordPress Core


Ignore:
Timestamp:
05/29/2014 03:58:41 AM (11 years ago)
Author:
nacin
Message:

Forcing SSL logins now forces SSL for the entire admin, with no middle ground.

fixes #10267.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r28340 r28609  
    742742    $reauth = empty($_REQUEST['reauth']) ? false : true;
    743743
    744     // If the user was redirected to a secure login form from a non-secure admin page, and secure login is required but secure admin is not, then don't use a secure
    745     // cookie and redirect back to the referring non-secure admin page. This allows logins to always be POSTed over SSL while allowing the user to choose visiting
    746     // the admin via http or https.
    747     if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
    748         $secure_cookie = false;
    749 
    750744    $user = wp_signon( '', $secure_cookie );
    751745
Note: See TracChangeset for help on using the changeset viewer.