Make WordPress Core

Ticket #11885: 11885.diff

File 11885.diff, 548 bytes (added by dancole, 14 years ago)
  • wp-includes/canonical.php

     
    4444
    4545        if ( !$requested_url ) {
    4646                // build the URL in the address bar
    47                 $requested_url  = ( !empty($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
     47                $requested_url  = is_ssl() ? 'https://' : 'http://';
    4848                $requested_url .= $_SERVER['HTTP_HOST'];
    4949                $requested_url .= $_SERVER['REQUEST_URI'];
    5050        }