Add setup wizard

This commit is contained in:
Brian Miyaji
2017-03-11 14:25:48 +11:00
parent dfa5895549
commit 07693ebb5b
10 changed files with 1162 additions and 33 deletions

View File

@@ -336,7 +336,7 @@ class SP_Admin_Welcome {
$settings = array(
array(
'id' => 'sportspress_sport',
'default' => get_option( 'sportspress_sport', 'custom' ),
'default' => get_option( 'sportspress_sport', 'soccer' ),
'type' => 'sport',
'title' => __( 'Sport', 'sportspress' ),
'welcome' => true,
@@ -723,7 +723,7 @@ class SP_Admin_Welcome {
if ( ( isset( $_GET['action'] ) && 'upgrade-plugin' == $_GET['action'] ) && ( isset( $_GET['plugin'] ) && strstr( $_GET['plugin'], 'sportspress.php' ) ) )
return;
wp_redirect( admin_url( 'index.php?page=sp-about' ) );
wp_redirect( admin_url( 'admin.php?page=sp-setup' ) );
exit;
}
}