mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user