Fix welcome page displaying if preset saved from settings

This commit is contained in:
Brian Miyaji
2017-01-31 19:25:04 +11:00
parent f4e3ef4178
commit 3132d8832f
3 changed files with 5 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ class SP_Install {
// We no longer need to install pages
delete_option( '_sp_needs_welcome' );
update_option( 'sportspress_installed', 1 );
delete_transient( '_sp_activation_redirect' );
// What's new redirect
@@ -65,6 +66,7 @@ class SP_Install {
// We no longer need to install configs
delete_option( '_sp_needs_welcome' );
update_option( 'sportspress_installed', 1 );
delete_transient( '_sp_activation_redirect' );
// What's new redirect