mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
解决无法判断该独立页面是否有草稿
This commit is contained in:
parent
64a66be475
commit
5abd915678
@ -395,8 +395,7 @@ class Widget_XmlRpc extends Widget_Abstract_Contents implements Widget_Interface
|
||||
'dateCreated' => new IXR_Date($this->options->timezone + $pages->created),
|
||||
'userid' => $pages->authorId,
|
||||
'page_id' => intval($pages->cid),
|
||||
/** todo:此处有疑问 */
|
||||
'page_status' => $this->typechoToWordpressStatus($pages->status, 'page'),
|
||||
'page_status' => $this->typechoToWordpressStatus(($pages->hasSaved || 'page_draft' == $pages->type) ? 'draft' : $pages->status, 'page'),
|
||||
'description' => $excerpt,
|
||||
'title' => $pages->title,
|
||||
'link' => $pages->permalink,
|
||||
|
Loading…
x
Reference in New Issue
Block a user