Turn off responsive tables by default

This commit is contained in:
Brian Miyaji
2018-01-26 01:34:03 +11:00
parent 30561ff017
commit 8fad5481a0
6 changed files with 9 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ class SP_Settings_General extends SP_Settings_Page {
'title' => __( 'Tables', 'sportspress' ),
'desc' => __( 'Responsive', 'sportspress' ),
'id' => 'sportspress_enable_responsive_tables',
'default' => 'yes',
'default' => 'no',
'type' => 'checkbox',
'checkboxgroup' => 'start',
),

View File

@@ -432,6 +432,10 @@ class SP_Install {
update_option( 'sportspress_mode', 'team' );
}
}
if ( version_compare( $version, '2.5.5', '<' ) ) {
update_option( 'sportspress_enable_responsive_tables', 'no' );
}
}
/**