WordPress.org

Make WordPress Core

Ticket #8593: pastie-1361767.diff

File pastie-1361767.diff, 401 bytes (added by scribu, 5 years ago)

Patch by gynter, on IRC

  • canonical.php

     
    4444                // build the URL in the address bar 
    4545                $requested_url  = is_ssl() ? 'https://' : 'http://'; 
    4646                $requested_url .= $_SERVER['HTTP_HOST']; 
     47                $requested_url .= $_SERVER['HTTP_PORT'] == '80' ? '' : ':'.$_SERVER['HTTP_PORT']; 
    4748                $requested_url .= $_SERVER['REQUEST_URI']; 
    4849        } 
    4950