Make WordPress Core

Ticket #22283: 22283.diff

File 22283.diff, 493 bytes (added by barry, 12 years ago)
  • wp-login.php

     
    1212require( dirname(__FILE__) . '/wp-load.php' );
    1313
    1414// Redirect to https login if forced to use SSL
    15 if ( force_ssl_admin() && ! is_ssl() ) {
     15if ( force_ssl_login() && ! is_ssl() ) {
    1616        if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
    1717                wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );
    1818                exit();