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
This commit is contained in:
parent
3e257c488d
commit
a052f091dc
@ -612,7 +612,12 @@ class xmlrpcmsg {
|
||||
}
|
||||
|
||||
function xml_header() {
|
||||
return "<?xml version=\"1.0\"?".">\n<methodCall>\n";
|
||||
if function_exists('get_settings') {
|
||||
$encoding = ' encoding="'.get_settings('blog_charset').'"';
|
||||
} else {
|
||||
$encoding = '';
|
||||
}
|
||||
return "<?xml version=\"1.0\"$encoding?".">\n<methodCall>\n";
|
||||
}
|
||||
|
||||
function xml_footer() {
|
||||
|
Loading…
Reference in New Issue
Block a user