Apply default mode

This commit is contained in:
Brian Miyaji
2017-03-17 10:40:56 +11:00
parent fd9a0f5203
commit 665072daf5

View File

@@ -504,7 +504,13 @@ if ( !function_exists( 'sp_get_term_sections' ) ) {
if ( !function_exists( 'sp_get_default_mode' ) ) {
function sp_get_default_mode() {
return get_option( 'sportspress_mode', 'team' );
$mode = get_option( 'sportspress_mode', 'team' );
if ( empty( $mode ) ) {
$mode = 'team';
}
return $mode;
}
}