Specify the charset in WP_Ajax_Response::send(). Props sergey.s.betke@novgaro.ru, SergeyBiryukov. fixes #19448
git-svn-id: https://develop.svn.wordpress.org/trunk@21528 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c4efcb4def
commit
7366f664a8
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user