Ticket #4794: class-IXR.php.diff
File class-IXR.php.diff, 739 bytes (added by , 12 years ago) |
---|
-
class-IXR.php
466 466 467 467 function output($xml) 468 468 { 469 $xml = '<?xml version="1.0" ?>'."\n".$xml;469 $xml = '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'."\n".$xml; 470 470 $length = strlen($xml); 471 471 header('Connection: close'); 472 472 header('Content-Length: '.$length); 473 header('Content-Type: text/xml ');474 header('Date: '.date( 'r'));473 header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); 474 header('Date: '.date(DATE_RFC1123)); 475 475 echo $xml; 476 476 exit; 477 477 }