fix cron issue

This commit is contained in:
Jonathan Labreuille
2016-04-11 15:35:47 +02:00
parent 7d34274fbf
commit c42bbf3dc4

View File

@@ -39,7 +39,6 @@ class Initializer {
$this->setupShortcodes();
$this->setupHooks();
$this->setupImages();
$this->setupPublicAPI();
$this->runQueueSupervisor();
} catch(\Exception $e) {
// if anything goes wrong during init
@@ -50,8 +49,8 @@ class Initializer {
function onInit() {
$this->setupRouter();
$this->setupPublicAPI();
$this->setupPages();
$this->runQueueSupervisor();
}
function setupDB() {
@@ -185,4 +184,4 @@ class Initializer {
function setupImages() {
add_image_size('mailpoet_newsletter_max', 1320);
}
}
}