Ticket #8916: class-IXR.diff
| File class-IXR.diff, 1.1 KB (added by wnorris, 4 years ago) |
|---|
-
wp-includes/class-IXR.php
543 543 $request .= $xml; 544 544 // Now send the request 545 545 if ($this->debug) { 546 echo '<pre >'.htmlspecialchars($request)."\n</pre>\n\n";546 echo '<pre class="ixr_request">'.htmlspecialchars($request)."\n</pre>\n\n"; 547 547 } 548 548 if ($this->timeout) { 549 549 $fp = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout); … … 574 574 if (!$gettingHeaders) { 575 575 $contents .= trim($line); 576 576 } 577 if ($this->debug) { 578 $debug_contents .= $line; 579 } 577 580 } 578 581 if ($this->debug) { 579 echo '<pre >'.htmlspecialchars($contents)."\n</pre>\n\n";582 echo '<pre class="ixr_response">'.htmlspecialchars($debug_contents)."\n</pre>\n\n"; 580 583 } 581 584 // Now parse what we've got back 582 585 $this->message = new IXR_Message($contents);