Specify the charset in WP_Ajax_Response::send(). Props sergey.s.betke@novgaro.ru, SergeyBiryukov. fixes #19448
git-svn-id: http://core.svn.wordpress.org/trunk@21528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2394b77094
commit
c1b270d95a
|
@ -126,8 +126,8 @@ class WP_Ajax_Response {
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*/
|
*/
|
||||||
function send() {
|
function send() {
|
||||||
header('Content-Type: text/xml');
|
header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) );
|
||||||
echo "<?xml version='1.0' standalone='yes'?><wp_ajax>";
|
echo "<?xml version='1.0' encoding='" . get_option( 'blog_charset' ) . "' standalone='yes'?><wp_ajax>";
|
||||||
foreach ( (array) $this->responses as $response )
|
foreach ( (array) $this->responses as $response )
|
||||||
echo $response;
|
echo $response;
|
||||||
echo '</wp_ajax>';
|
echo '</wp_ajax>';
|
||||||
|
|
Loading…
Reference in New Issue