From 1d0e253281573ca424a218c430868d1dbc629fdb Mon Sep 17 00:00:00 2001 From: joyqi Date: Wed, 1 Jun 2022 23:50:36 +0800 Subject: [PATCH] Fix page draft publish --- var/Widget/Contents/Post/Edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Widget/Contents/Post/Edit.php b/var/Widget/Contents/Post/Edit.php index 9ececbe9..fa8c1e5d 100644 --- a/var/Widget/Contents/Post/Edit.php +++ b/var/Widget/Contents/Post/Edit.php @@ -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']);