Apply outcome condition to presets
This commit is contained in:
@@ -122,6 +122,7 @@ class SP_Admin_Sports {
|
||||
if ( empty( $post ) ) continue;
|
||||
$id = self::insert_preset_post( $post, $index );
|
||||
update_post_meta( $id, 'sp_abbreviation', sp_array_value( $outcome, 'abbreviation', null ) );
|
||||
update_post_meta( $id, 'sp_condition', sp_array_value( $outcome, 'condition', null ) );
|
||||
}
|
||||
|
||||
// Results
|
||||
|
||||
@@ -135,7 +135,6 @@ class SP_Install {
|
||||
if ( ! get_option( 'sportspress_installed' ) ) {
|
||||
// Configure default sport
|
||||
$sport = 'custom';
|
||||
//SP_Admin_Sports::apply_preset( $sport );
|
||||
update_option( 'sportspress_sport', $sport );
|
||||
|
||||
// Flag as installed
|
||||
|
||||
Reference in New Issue
Block a user