WordPress.org

Make WordPress Core

Ticket #11643: 11643.patch

File 11643.patch, 591 bytes (added by hakre, 8 years ago)
  • wp-login.php

     
    477477                $redirect_to = admin_url();
    478478        }
    479479
    480         if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
    481                 $secure_cookie = false;
    482 
    483480        $user = wp_signon('', $secure_cookie);
    484481
    485482        $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);