Make WordPress Core

Changeset 13427 for trunk/wp-login.php


Ignore:
Timestamp:
02/26/2010 06:21:47 AM (15 years ago)
Author:
nacin
Message:

Use is_ssl() in place of manual SERVERHTTPS? == 'on' checks. fixes #11885

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r13242 r13427  
    340340        $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );
    341341
    342     $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
     342    $schema = is_ssl() ? 'https://' : 'http://';
    343343    if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') )
    344344        update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
Note: See TracChangeset for help on using the changeset viewer.