Default sport to custom
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user