Skip to content

Commit

Permalink
Adds check for block function
Browse files Browse the repository at this point in the history
  • Loading branch information
fpcorso committed Dec 28, 2018
1 parent 16462f2 commit a72c0af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mlw_quizmaster2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a72c0af

Please sign in to comment.