Default sport to custom
This commit is contained in:
@@ -48,7 +48,7 @@ class SP_Settings_General extends SP_Settings_Page {
|
|||||||
array(
|
array(
|
||||||
'title' => __( 'Sport', 'sportspress' ),
|
'title' => __( 'Sport', 'sportspress' ),
|
||||||
'id' => 'sportspress_sport',
|
'id' => 'sportspress_sport',
|
||||||
'default' => 'soccer',
|
'default' => 'custom',
|
||||||
'type' => 'groupselect',
|
'type' => 'groupselect',
|
||||||
'options' => $presets,
|
'options' => $presets,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -134,9 +134,11 @@ class SP_Install {
|
|||||||
|
|
||||||
if ( ! get_option( 'sportspress_installed' ) ) {
|
if ( ! get_option( 'sportspress_installed' ) ) {
|
||||||
// Configure default sport
|
// Configure default sport
|
||||||
$sport = 'soccer';
|
$sport = 'custom';
|
||||||
SP_Admin_Sports::apply_preset( $sport );
|
//SP_Admin_Sports::apply_preset( $sport );
|
||||||
update_option( 'sportspress_sport', $sport );
|
update_option( 'sportspress_sport', $sport );
|
||||||
|
|
||||||
|
// Flag as installed
|
||||||
update_option( 'sportspress_installed', 1 );
|
update_option( 'sportspress_installed', 1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user