From 41a0793ae1a5d20d1db6eb4c315a1dc7c02ee03a Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Thu, 25 Mar 2021 15:06:54 -0400 Subject: [PATCH] refactor: use isRegistered instead of isLoggedIn isLoggedIn is depreciated in 1.36 --- includes/Partials/PageTools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Partials/PageTools.php b/includes/Partials/PageTools.php index b1da6cf3..8ccf02bb 100644 --- a/includes/Partials/PageTools.php +++ b/includes/Partials/PageTools.php @@ -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