if the class is used in WP, use the blog's charset in xmlrpc requests that we send
git-svn-id: http://svn.automattic.com/wordpress/trunk@1310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d9636d1744
commit
8b28d69e79
|
@ -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