mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 04:28:17 +01:00
Fix page draft publish
This commit is contained in:
parent
88c3bfe13f
commit
1d0e253281
@ -405,7 +405,7 @@ class Edit extends Contents implements ActionInterface
|
||||
$realId = 0;
|
||||
|
||||
/** 是否是从草稿状态发布 */
|
||||
$isDraftToPublish = ('post_draft' == $this->type);
|
||||
$isDraftToPublish = ('post_draft' == $this->type || 'page_draft' == $this->type);
|
||||
|
||||
$isBeforePublish = ('publish' == $this->status);
|
||||
$isAfterPublish = ('publish' == $contents['status']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user