Move presets to json objects

This commit is contained in:
Brian Miyaji
2014-05-02 17:27:18 +10:00
parent 6ce1953dc2
commit 388817111a
22 changed files with 438 additions and 365 deletions

View File

@@ -135,8 +135,7 @@ class SP_Install {
if ( ! get_option( 'sportspress_installed' ) ) {
// Configure default sport
$sport = 'soccer';
$options = sp_get_sport_presets();
SP_Admin_Settings::configure_sport( $options[ $sport ] );
SP_Admin_Sports::apply_preset( $sport );
update_option( 'sportspress_sport', $sport );
update_option( 'sportspress_installed', 1 );
}