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/canonical.php

    r13377 r13427  
    4343    if ( !$requested_url ) {
    4444        // build the URL in the address bar
    45         $requested_url  = ( !empty($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
     45        $requested_url  = is_ssl() ? 'https://' : 'http://';
    4646        $requested_url .= $_SERVER['HTTP_HOST'];
    4747        $requested_url .= $_SERVER['REQUEST_URI'];
Note: See TracChangeset for help on using the changeset viewer.