Skip to content

Commit

Permalink
fixed undefined constant SECURE_AUTH_COOKIE due to current_user_can f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
randhirexpresstech committed Apr 3, 2024
1 parent f68a19b commit f09967e
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 f09967e

Please sign in to comment.