diff --git a/wp-includes/class-snoopy.php b/wp-includes/class-snoopy.php index 9bf56b3615..5e8878723d 100644 --- a/wp-includes/class-snoopy.php +++ b/wp-includes/class-snoopy.php @@ -796,7 +796,7 @@ class Snoopy $headers .= "User-Agent: ".$this->agent."\r\n"; if(!empty($this->host) && !isset($this->rawheaders['Host'])) { $headers .= "Host: ".$this->host; - if(!empty($this->port)) + if(!empty($this->port) && $this->port != 80) $headers .= ":".$this->port; $headers .= "\r\n"; }