Ticket #19448: 19448.charset-only.diff

File 19448.charset-only.diff, 679 bytes (added by SergeyBiryukov, 10 months ago)
  • wp-includes/class-wp-ajax-response.php

     
    126126         * @since 2.1.0 
    127127         */ 
    128128        function send() { 
    129                 header('Content-Type: text/xml'); 
    130                 echo "<?xml version='1.0' standalone='yes'?><wp_ajax>"; 
     129                header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) ); 
     130                echo "<?xml version='1.0' encoding='" . get_option( 'blog_charset' ) . "' standalone='yes'?><wp_ajax>"; 
    131131                foreach ( (array) $this->responses as $response ) 
    132132                        echo $response; 
    133133                echo '</wp_ajax>';