Show intro only on new install (but not when migrating from WP2)

Intro is marked as shown only when "Skip" or "Done" is explicitly used - this
avoids closing the intro by mistake and never having the option to see it again.

[MAILPOET-1446]
This commit is contained in:
Jan Jakeš
2018-08-04 23:14:53 +02:00
committed by pavel-mailpoet
parent 7ae25ae299
commit fcef5f0d2b
3 changed files with 15 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class Changelog {
} else {
$skip_wizard = WPHooks::applyFilters('mailpoet_skip_welcome_wizard', false);
$redirect_url = $skip_wizard ? null : admin_url('admin.php?page=mailpoet-welcome-wizard');
Setting::setValue('show_intro', true);
}
}
}