Ticket #11885: 11885.diff
File 11885.diff, 548 bytes (added by , 14 years ago) |
---|
-
wp-includes/canonical.php
44 44 45 45 if ( !$requested_url ) { 46 46 // 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://'; 48 48 $requested_url .= $_SERVER['HTTP_HOST']; 49 49 $requested_url .= $_SERVER['REQUEST_URI']; 50 50 }