From a052f091dc54670b9f1e30e010f345cd26f46a64 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Wed, 19 May 2004 01:35:09 +0000 Subject: [PATCH] if the class is used in WP, use the blog's charset in xmlrpc requests that we send git-svn-id: https://develop.svn.wordpress.org/trunk@1310 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-xmlrpc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-xmlrpc.php b/wp-includes/class-xmlrpc.php index 5524eb4bea..6fcb5f0bd4 100644 --- a/wp-includes/class-xmlrpc.php +++ b/wp-includes/class-xmlrpc.php @@ -612,7 +612,12 @@ class xmlrpcmsg { } function xml_header() { - return "\n\n"; + if function_exists('get_settings') { + $encoding = ' encoding="'.get_settings('blog_charset').'"'; + } else { + $encoding = ''; + } + return "\n\n"; } function xml_footer() {