Changeset 21531
- Timestamp:
- 08/15/2012 08:12:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-IXR.php
r19712 r21531 467 467 function output($xml) 468 468 { 469 $xml = '<?xml version="1.0"?>'."\n".$xml; 469 $charset = function_exists('get_option') ? get_option('blog_charset') : ''; 470 if ($charset) 471 $xml = '<?xml version="1.0" encoding="'.$charset.'"?>'."\n".$xml; 472 else 473 $xml = '<?xml version="1.0"?>'."\n".$xml; 470 474 $length = strlen($xml); 471 475 header('Connection: close'); 472 476 header('Content-Length: '.$length); 473 header('Content-Type: text/xml'); 477 if ($charset) 478 header('Content-Type: text/xml; charset='.$charset); 479 else 480 header('Content-Type: text/xml'); 474 481 header('Date: '.date('r')); 475 482 echo $xml;
Note: See TracChangeset
for help on using the changeset viewer.