Update Composer packages
This commit is contained in:
parent
9252d9ce90
commit
134266af8a
176 changed files with 7930 additions and 2262 deletions
|
@ -733,7 +733,7 @@ class Page extends ModelWithContent
|
|||
*/
|
||||
public function isListed(): bool
|
||||
{
|
||||
return $this->num() !== null;
|
||||
return $this->isPublished() && $this->num() !== null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -797,7 +797,7 @@ class Page extends ModelWithContent
|
|||
*/
|
||||
public function isUnlisted(): bool
|
||||
{
|
||||
return $this->isListed() === false;
|
||||
return $this->isPublished() && $this->num() === null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -811,7 +811,7 @@ class Page extends ModelWithContent
|
|||
public function isVerified(string $token = null)
|
||||
{
|
||||
if (
|
||||
$this->isDraft() === false &&
|
||||
$this->isPublished() === true &&
|
||||
$this->parents()->findBy('status', 'draft') === null
|
||||
) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue