Ticket #4011: class-IXR.php.diff
File class-IXR.php.diff, 1.0 KB (added by , 18 years ago) |
---|
-
class-IXR.php
497 497 echo '<pre>'.htmlspecialchars($request)."\n</pre>\n\n"; 498 498 } 499 499 if ($this->timeout) { 500 $fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout); 500 if (!WP_USEPROXY) { 501 $fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout); 502 } else { 503 $fp = @fsockopen(WP_PROXYHOST, WP_PROXYPORT, $errno, $errstr, $this->timeout); 504 } 501 505 } else { 502 $fp = @fsockopen($this->server, $this->port, $errno, $errstr); 506 if (!WP_USEPROXY) { 507 $fp = @fsockopen($this->server, $this->port, $errno, $errstr); 508 } else { 509 $fp = @fsockopen(WP_PROXYHOST, WP_PROXYPORT, $errno, $errstr); 510 } 503 511 } 504 512 if (!$fp) { 505 513 $this->error = new IXR_Error(-32300, "transport error - could not open socket: $errno $errstr");