Index: class-IXR.php
===================================================================
--- class-IXR.php	(revision 5092)
+++ class-IXR.php	(working copy)
@@ -497,9 +497,17 @@
             echo '<pre>'.htmlspecialchars($request)."\n</pre>\n\n";
         }
         if ($this->timeout) {
-            $fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
+            if (!WP_USEPROXY) {
+				$fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
+			} else {
+				$fp = @fsockopen(WP_PROXYHOST, WP_PROXYPORT, $errno, $errstr, $this->timeout);
+			}
         } else {
-            $fp = @fsockopen($this->server, $this->port, $errno, $errstr);
+            if (!WP_USEPROXY) {
+				$fp = @fsockopen($this->server, $this->port, $errno, $errstr);
+			} else {
+				$fp = @fsockopen(WP_PROXYHOST, WP_PROXYPORT, $errno, $errstr);
+			}
         }
         if (!$fp) {
             $this->error = new IXR_Error(-32300, "transport error - could not open socket: $errno $errstr");

