WordPress.org

Make WordPress Core

Ticket #9008: 9008.6.diff

File 9008.6.diff, 730 bytes (added by PeteMall, 4 years ago)

Revert parse_url()

  • wp-includes/class-http.php

     
    251251                $r['ssl'] = $arrURL['scheme'] == 'https' || $arrURL['scheme'] == 'ssl'; 
    252252 
    253253                // Determine if this request is to OUR install of WordPress 
    254                 $homeURL = home_url(); 
     254                $homeURL = parse_url( home_url() ); 
    255255                $r['local'] = $homeURL['host'] == $arrURL['host'] || 'localhost' == $arrURL['host']; 
    256256                unset($homeURL); 
    257257 
     
    19991999        function is_available() { 
    20002000                return ( function_exists('gzuncompress') || function_exists('gzdeflate') || function_exists('gzinflate') ); 
    20012001        } 
    2002 } 
    2003  No newline at end of file 
     2002}