WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/26/2010 06:21:47 AM (10 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-includes/functions.php

    r13413 r13427  
    33383338        $url = WP_SITEURL;
    33393339    } else {
    3340         $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
     3340        $schema = is_ssl() ? 'https://' : 'http://';
    33413341        $url = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
    33423342    }
Note: See TracChangeset for help on using the changeset viewer.