IXR_Server::output() WordPress Method
The IXR_Server::output() method is used to send an XML-RPC response back to the client. This method takes a single parameter, which is the XML-RPC response string.
IXR_Server::output( $xml ) #
Source
File: wp-includes/IXR/class-IXR-server.php
function output($xml) { $charset = function_exists('get_option') ? get_option('blog_charset') : ''; if ($charset) $xml = '<?xml version="1.0" encoding="'.$charset.'"?>'."\n".$xml; else $xml = '<?xml version="1.0"?>'."\n".$xml; $length = strlen($xml); header('Connection: close'); if ($charset) header('Content-Type: text/xml; charset='.$charset); else header('Content-Type: text/xml'); header('Date: '.gmdate('r')); echo $xml; exit; }
Expand full source codeCollapse full source codeView on TracView on GitHub