Ticket #19448: 19448.diff
File 19448.diff, 837 bytes (added by , 13 years ago) |
---|
-
class-wp-ajax-response.php
126 126 * @since 2.1.0 127 127 */ 128 128 function send() { 129 header('Content-Type: text/xml'); 130 echo "<?xml version='1.0' standalone='yes'?><wp_ajax>"; 129 $xml = "<?xml version='1.0' encoding='" . get_option('blog_charset') . "' standalone='yes'?><wp_ajax>"; 131 130 foreach ( (array) $this->responses as $response ) 132 echo $response; 133 echo '</wp_ajax>'; 131 $xml .= $response; 132 $xml .= '</wp_ajax>'; 133 $length = strlen($xml); 134 135 status_header( 200 ); 136 nocache_headers(); 137 header('Content-Type: text/xml; charset=' . get_option('blog_charset')); 138 header('Content-Length: '.$length); 139 140 echo $xml; 134 141 die(); 135 142 } 136 143 }