mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-15 00:34:33 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user