mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 20:48:42 +01:00
修复用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:
parent
91d83d40b1
commit
2e2835ce6b
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user