Move key checks from constructor to init() in Menu class [MAILPOET-1204]
This commit is contained in:
committed by
pavel-mailpoet
parent
52a55d3bd1
commit
0061a9daf9
@ -37,13 +37,14 @@ class Menu {
|
||||
$this->renderer = $renderer;
|
||||
$this->assets_url = $assets_url;
|
||||
$this->access_control = $access_control;
|
||||
}
|
||||
|
||||
function init() {
|
||||
$subscribers_feature = new SubscribersFeature();
|
||||
$this->subscribers_over_limit = $subscribers_feature->check();
|
||||
$this->checkMailPoetAPIKey();
|
||||
$this->checkPremiumKey();
|
||||
}
|
||||
|
||||
function init() {
|
||||
add_action(
|
||||
'admin_menu',
|
||||
array(
|
||||
|
Reference in New Issue
Block a user