diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index 3eaf8e2e2..7d678fdf7 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -543,7 +543,7 @@ class IXR_Client { $request .= $xml; // Now send the request if ($this->debug) { - echo '
'.htmlspecialchars($request)."\n
\n\n"; + echo '
'.htmlspecialchars($request)."\n
\n\n"; } if ($this->timeout) { $fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout); @@ -574,9 +574,12 @@ class IXR_Client { if (!$gettingHeaders) { $contents .= trim($line); } + if ($this->debug) { + $debug_contents .= $line; + } } if ($this->debug) { - echo '
'.htmlspecialchars($contents)."\n
\n\n"; + echo '
'.htmlspecialchars($debug_contents)."\n
\n\n"; } // Now parse what we've got back $this->message = new IXR_Message($contents);