WordPress.org

Make WordPress Core

Ticket #8593: 8593.patch

File 8593.patch, 556 bytes (added by hakre, 10 years ago)

casting to int added, patch still applies clean

  • wp-includes/canonical.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk bare
     
    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' ? '' : ':'.(int) $_SERVER['HTTP_PORT'];
    4748                $requested_url .= $_SERVER['REQUEST_URI'];
    4849        }
    4950