Default sport to custom

This commit is contained in:
Brian Miyaji
2014-10-16 01:20:50 +11:00
parent 51a18e0e20
commit 4ae9bfef61
2 changed files with 5 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ class SP_Settings_General extends SP_Settings_Page {
array(
'title' => __( 'Sport', 'sportspress' ),
'id' => 'sportspress_sport',
'default' => 'soccer',
'default' => 'custom',
'type' => 'groupselect',
'options' => $presets,
),

View File

@@ -134,9 +134,11 @@ class SP_Install {
if ( ! get_option( 'sportspress_installed' ) ) {
// Configure default sport
$sport = 'soccer';
SP_Admin_Sports::apply_preset( $sport );
$sport = 'custom';
//SP_Admin_Sports::apply_preset( $sport );
update_option( 'sportspress_sport', $sport );
// Flag as installed
update_option( 'sportspress_installed', 1 );
}
}