Make WordPress Core

Ticket #37820: patch_37820.diff

File patch_37820.diff, 662 bytes (added by tristangemus, 8 years ago)
  • wp-includes/Requests/Transport/cURL.php

     
    373373                        curl_setopt($this->handle, CURLOPT_CONNECTTIMEOUT_MS, round($options['connect_timeout'] * 1000));
    374374                }
    375375                curl_setopt($this->handle, CURLOPT_URL, $url);
    376                 curl_setopt($this->handle, CURLOPT_REFERER, $url);
     376                curl_setopt($this->handle, CURLOPT_REFERER, site_url());
    377377                curl_setopt($this->handle, CURLOPT_USERAGENT, $options['useragent']);
    378378                curl_setopt($this->handle, CURLOPT_HTTPHEADER, $headers);
    379379