X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..8a4706fdeb1ae30268e510df6ccf3c39b3028059:/wp-includes/class-IXR.php?ds=sidebyside diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index 9d89f0c5..f8fbc00b 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -466,11 +466,18 @@ EOD; function output($xml) { - $xml = ''."\n".$xml; + $charset = function_exists('get_option') ? get_option('blog_charset') : ''; + if ($charset) + $xml = ''."\n".$xml; + else + $xml = ''."\n".$xml; $length = strlen($xml); header('Connection: close'); header('Content-Length: '.$length); - header('Content-Type: text/xml'); + if ($charset) + header('Content-Type: text/xml; charset='.$charset); + else + header('Content-Type: text/xml'); header('Date: '.date('r')); echo $xml; exit; @@ -1061,5 +1068,3 @@ class IXR_ClientMulticall extends IXR_Client return parent::query('system.multicall', $this->calls); } } - -?>