Rename method in initializer
[MAILPOET-3537]
This commit is contained in:
@ -229,7 +229,7 @@ class Initializer {
|
|||||||
|
|
||||||
WPFunctions::get()->doAction('mailpoet_initialized', MAILPOET_VERSION);
|
WPFunctions::get()->doAction('mailpoet_initialized', MAILPOET_VERSION);
|
||||||
} catch (InvalidStateException $e) {
|
} catch (InvalidStateException $e) {
|
||||||
return $this->handleRunningInitialization($e);
|
return $this->handleRunningMigration($e);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return $this->handleFailedInitialization($e);
|
return $this->handleFailedInitialization($e);
|
||||||
}
|
}
|
||||||
@ -349,7 +349,7 @@ class Initializer {
|
|||||||
return WPNotice::displayError($exception);
|
return WPNotice::displayError($exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function handleRunningInitialization(InvalidStateException $exception) {
|
private function handleRunningMigration(InvalidStateException $exception) {
|
||||||
if (function_exists('wp_get_current_user')) {
|
if (function_exists('wp_get_current_user')) {
|
||||||
Menu::addErrorPage($this->accessControl);
|
Menu::addErrorPage($this->accessControl);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user