Make WordPress Core

Changeset 21528


Ignore:
Timestamp:
08/15/2012 06:17:21 PM (12 years ago)
Author:
ryan
Message:

Specify the charset in WP_Ajax_Response::send(). Props sergey.s.betke@…, SergeyBiryukov. fixes #19448

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-ajax-response.php

    r19911 r21528  
    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;
Note: See TracChangeset for help on using the changeset viewer.