修复用XMLRPC获取评论时无法得到垃圾评论和待审核评论

修复用XMLRPC获取评论时无法得到垃圾评论和待审核评论
1056行
$input['status'] = 'hold' == $input['status'] ? $input['status'] : $this->wordpressToTypechoStatus($struct['status']); 
改为
$input['status'] = $this->wordpressToTypechoStatus($struct['status'], 'comment');
This commit is contained in:
权那他 2019-08-18 10:11:17 +08:00 committed by GitHub
parent 91d83d40b1
commit 2e2835ce6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1053,8 +1053,7 @@ class Widget_XmlRpc extends Widget_Abstract_Contents implements Widget_Interface
$input = array();
if (!empty($struct['status'])) {
$input['status'] = 'hold' == $input['status'] ? $input['status'] :
$this->wordpressToTypechoStatus($struct['status']);
$input['status'] = $this->wordpressToTypechoStatus($struct['status'], 'comment');
} else {
$input['__typecho_all_comments'] = 'on';
}