Changeset 28609 for trunk/src/wp-login.php
- Timestamp:
- 05/29/2014 03:58:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r28340 r28609 742 742 $reauth = empty($_REQUEST['reauth']) ? false : true; 743 743 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 secure745 // 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 visiting746 // 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 750 744 $user = wp_signon( '', $secure_cookie ); 751 745
Note: See TracChangeset
for help on using the changeset viewer.