refactor: use isRegistered instead of isLoggedIn

isLoggedIn is depreciated in 1.36
This commit is contained in:
alistair3149 2021-03-25 15:06:54 -04:00 committed by GitHub
parent 88aed73f5c
commit 41a0793ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ final class PageTools extends Partial {
// Login-based condition, return true if condition is met
if ( $condition === 'login' ) {
$condition = $this->skin->getUser()->isLoggedIn();
$condition = $this->skin->getUser()->isRegistered();
}
// Permission-based condition, return true if condition is met