当出现下面的问题时:
The response to the metaWeblog.getRecentPosts method received from the blog server was invalid:
Invalid response document returned from XmlRpc server
可以用下面的方法解决:
因为wordpress本身的一个bug,在utf-8编码下,在wp-includes文件夹下, xml-rpc返回的格式不正确,缺了三个字节,要修正这个问题,按如下操作即可:
用一个文本编辑工具打开class.ixr.php,查找:
$length = strlen($xml);
替换为:<!–more –>
$length = strlen($xml)+3;
就可以解决这个问题了!