Move key checks from constructor to init() in Menu class [MAILPOET-1204]

This commit is contained in:
stoletniy
2017-11-15 12:50:36 +03:00
committed by pavel-mailpoet
parent 52a55d3bd1
commit 0061a9daf9

View File

@ -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(