Show notice in Beamer when MailPoet update is available

[MAILPOET-2038]
This commit is contained in:
Ján Mikláš
2019-05-20 13:06:15 +02:00
committed by M. Shull
parent 406b8fdb74
commit 9745b0ab02
6 changed files with 67 additions and 7 deletions

View File

@@ -677,6 +677,7 @@ class Menu {
$data['tracking_enabled'] = $this->settings->get('tracking.enabled');
$data['premium_plugin_active'] = License::getLicense();
$data['is_woocommerce_active'] = $this->woocommerce_helper->isWooCommerceActive();
$data['is_mailpoet_update_available'] = array_key_exists(Env::$plugin_path, $this->wp->getPluginUpdates());
$user_id = $data['current_wp_user']['ID'];