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-includes/functions.php

    r28588 r28609  
    33883388 */
    33893389function force_ssl_login( $force = null ) {
    3390     static $forced = false;
    3391 
    3392     if ( !is_null( $force ) ) {
    3393         $old_forced = $forced;
    3394         $forced = $force;
    3395         return $old_forced;
    3396     }
    3397 
    3398     return $forced;
     3390    return force_ssl_admin( $force );
    33993391}
    34003392
     
    43064298    $same_domain = ( strpos( $login_url, $current_domain ) === 0 );
    43074299
    4308     if ( $same_domain && force_ssl_login() && ! force_ssl_admin() )
    4309         $same_domain = false;
    4310 
    43114300    /**
    43124301     * Filter whether the authentication check originated at the same domain.
Note: See TracChangeset for help on using the changeset viewer.