]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-ajax-response.php
Wordpress 3.6-scripts
[autoinstalls/wordpress.git] / wp-includes / class-wp-ajax-response.php
index 2bf974a26502353772db308819bac9dabe093020..24eb687f123f1e697d64678c8f9aae8178a539b8 100644 (file)
@@ -126,8 +126,8 @@ class WP_Ajax_Response {
         * @since 2.1.0
         */
        function send() {
-               header('Content-Type: text/xml');
-               echo "<?xml version='1.0' standalone='yes'?><wp_ajax>";
+               header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) );
+               echo "<?xml version='1.0' encoding='" . get_option( 'blog_charset' ) . "' standalone='yes'?><wp_ajax>";
                foreach ( (array) $this->responses as $response )
                        echo $response;
                echo '</wp_ajax>';