Upgrade to 3.0.3
This commit is contained in:
@@ -510,6 +510,10 @@ class Page extends ModelWithContent
|
||||
public function is($page): bool
|
||||
{
|
||||
if (is_a($page, Page::class) === false) {
|
||||
if (is_string($page) === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$page = $this->kirby()->page($page);
|
||||
}
|
||||
|
||||
@@ -757,7 +761,7 @@ class Page extends ModelWithContent
|
||||
*/
|
||||
public function isUnlisted(): bool
|
||||
{
|
||||
return $this->num() === null;
|
||||
return $this->isListed() === false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user