From f68a19b431d06b45a2ad0571096dd084ceed4f1f Mon Sep 17 00:00:00 2001 From: randhirexpresstech Date: Wed, 3 Apr 2024 11:35:33 +0530 Subject: [PATCH] fixed undefined constant SECURE_AUTH_COOKIE due to current_user_can function --- mlw_quizmaster2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlw_quizmaster2.php b/mlw_quizmaster2.php index ba78c32ad..2a10b59bb 100644 --- a/mlw_quizmaster2.php +++ b/mlw_quizmaster2.php @@ -191,7 +191,7 @@ private function load_dependencies() { include_once 'php/classes/class-qsm-audit.php'; $this->audit_manager = new QSM_Audit(); - if ( is_admin() || $this->qsm_is_admin() ) { + if ( is_admin() ) { include_once 'php/admin/functions.php'; include_once 'php/admin/stats-page.php'; include_once 'php/admin/quizzes-page.php';