Apply outcome condition to presets

This commit is contained in:
Brian Miyaji
2014-12-10 10:28:47 +11:00
parent 96bd9ec739
commit ad8b55f82e
2 changed files with 1 additions and 1 deletions

View File

@@ -122,6 +122,7 @@ class SP_Admin_Sports {
if ( empty( $post ) ) continue; if ( empty( $post ) ) continue;
$id = self::insert_preset_post( $post, $index ); $id = self::insert_preset_post( $post, $index );
update_post_meta( $id, 'sp_abbreviation', sp_array_value( $outcome, 'abbreviation', null ) ); 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 // Results

View File

@@ -135,7 +135,6 @@ class SP_Install {
if ( ! get_option( 'sportspress_installed' ) ) { if ( ! get_option( 'sportspress_installed' ) ) {
// Configure default sport // Configure default sport
$sport = 'custom'; $sport = 'custom';
//SP_Admin_Sports::apply_preset( $sport );
update_option( 'sportspress_sport', $sport ); update_option( 'sportspress_sport', $sport );
// Flag as installed // Flag as installed