Adds higher priority to init hook so that it fires before the widgets hook
This commit is contained in:
@ -61,7 +61,7 @@ class Initializer {
|
|||||||
add_action('init', array(
|
add_action('init', array(
|
||||||
$this,
|
$this,
|
||||||
'onInit'
|
'onInit'
|
||||||
));
|
), 0);
|
||||||
|
|
||||||
add_action('wp_loaded', array(
|
add_action('wp_loaded', array(
|
||||||
$this,
|
$this,
|
||||||
@ -113,7 +113,7 @@ class Initializer {
|
|||||||
do_action('mailpoet_initialized', MAILPOET_VERSION);
|
do_action('mailpoet_initialized', MAILPOET_VERSION);
|
||||||
} catch(\Exception $e) {
|
} catch(\Exception $e) {
|
||||||
define('MAILPOET_INITIALIZED', false);
|
define('MAILPOET_INITIALIZED', false);
|
||||||
|
|
||||||
return $this->handleFailedInitialization($e);
|
return $this->handleFailedInitialization($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user