Save sender even if user skips wizard

[MAILPOET-1925]
This commit is contained in:
Pavel Dohnal
2019-04-04 13:09:59 +02:00
committed by M. Shull
parent 9cab95c863
commit 5e2a87a4bf
3 changed files with 11 additions and 6 deletions

View File

@@ -389,9 +389,7 @@ class Menu {
'is_woocommerce_active' => $this->woocommerce_helper->isWooCommerceActive(),
'finish_wizard_url' => WPFunctions::get()->adminUrl('admin.php?page=' . self::MAIN_PAGE_SLUG),
'sender' => $this->settings->get('sender'),
'reply_to' => $this->settings->get('reply_to'),
'installed_at' => $this->settings->get('installed_at'),
'mss_active' => Bridge::isMPSendingServiceEnabled(),
'admin_email' => get_option('admin_email'),
];
$this->displayPage('welcome_wizard.html', $data);
}
@@ -642,7 +640,7 @@ class Menu {
$last_announcement_seen = $this->user_flags->get('last_announcement_seen');
$data['feature_announcement_has_news'] = (
empty($last_announcement_seen) ||
empty($last_announcement_seen) ||
$last_announcement_seen < strtotime(self::LAST_ANNOUNCEMENT_DATE)
);
$data['last_announcement_seen'] = $last_announcement_seen;