From a72c0af4315416b1acdc0eb468f911e308b4100c Mon Sep 17 00:00:00 2001 From: Frank Corso Date: Fri, 28 Dec 2018 10:16:28 -0500 Subject: [PATCH] Adds check for block function --- mlw_quizmaster2.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mlw_quizmaster2.php b/mlw_quizmaster2.php index ed79b16e3..451a14c55 100644 --- a/mlw_quizmaster2.php +++ b/mlw_quizmaster2.php @@ -149,7 +149,10 @@ private function load_dependencies() { include 'php/question-types.php'; include 'php/default-templates.php'; include 'php/shortcodes.php'; - include 'blocks/block.php'; + + if ( function_exists( 'register_block_type' ) ) { + include 'blocks/block.php'; + } include 'php/classes/class-qmn-alert-manager.php'; $this->alertManager = new MlwQmnAlertManager();