Skip to content

Commit

Permalink
Fixed fatal error when settings are not initialised
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jan 6, 2022
1 parent 7dc40d6 commit 268ec16
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions knowledgebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,14 @@
}


/**
* WZKB Settings
*
* @since 1.5.0
*
* @var array WZKB Settings
*/
global $wzkb_settings;
$wzkb_settings = wzkb_get_settings();


/*
*----------------------------------------------------------------------------
* Include files
*----------------------------------------------------------------------------
*/

require_once WZKB_PLUGIN_DIR . 'includes/admin/default-settings.php';
require_once WZKB_PLUGIN_DIR . 'includes/admin/register-settings.php';
require_once WZKB_PLUGIN_DIR . 'includes/admin/default-settings.php';
require_once WZKB_PLUGIN_DIR . 'includes/public/public.php';
require_once WZKB_PLUGIN_DIR . 'includes/public/related.php';
require_once WZKB_PLUGIN_DIR . 'includes/activate-deactivate.php';
Expand Down Expand Up @@ -114,6 +103,17 @@

}

/**
* WZKB Settings
*
* @since 1.5.0
*
* @var array WZKB Settings
*/
global $wzkb_settings;
$wzkb_settings = wzkb_get_settings();


/**
* Get Settings.
*
Expand Down

0 comments on commit 268ec16

Please sign in to comment.