Skip to content

Commit

Permalink
Merge pull request #2522 from QuizandSurveyMaster/randhir-dev
Browse files Browse the repository at this point in the history
fixed undefined constant SECURE_AUTH_COOKIE
  • Loading branch information
randhirexpresstech authored Apr 3, 2024
2 parents 0a777d2 + f09967e commit 774784c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlw_quizmaster2.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ private function load_dependencies() {
include_once 'php/classes/class-qsm-audit.php';
$this->audit_manager = new QSM_Audit();

if ( is_admin() ) {
// In block editor api call is_admin return false so use qsm_is_admin.
if ( is_admin() || ( ! empty( $_POST['qsm_block_api_call'] ) && $this->qsm_is_admin() ) ) {
include_once 'php/admin/functions.php';
include_once 'php/admin/stats-page.php';
include_once 'php/admin/quizzes-page.php';
Expand Down

0 comments on commit 774784c

Please sign in to comment.