mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Merge branch '4.5' into 4.6
This commit is contained in:
commit
9739308601
@ -2383,7 +2383,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
}
|
||||
|
||||
// "unpublish"
|
||||
if ($isPublished && $canPublish && $isOnDraft && $canUnpublish) {
|
||||
if ($isPublished && $isOnDraft && $canUnpublish) {
|
||||
$moreOptions->push(
|
||||
FormAction::create('unpublish', _t(__CLASS__.'.BUTTONUNPUBLISH', 'Unpublish'), 'delete')
|
||||
->setDescription(_t(__CLASS__.'.BUTTONUNPUBLISHDESC', 'Remove this page from the published site'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user