Merge branch 'master' of github.com:ThemeBoy/SportsPress

This commit is contained in:
Savvas Hadjigeorgiou
2021-11-05 13:18:46 +02:00
3 changed files with 3779 additions and 3541 deletions

View File

@@ -72,7 +72,7 @@ class SP_Settings_Page {
$templates = $this->templates();
if ( ! empty( $templates ) )
update_option( 'sportspress_' . $this->template . '_template_order', sp_array_value( $_POST, 'sportspress_' . $this->template . '_template_order', false ) );
update_option( 'sportspress_' . $this->template . '_template_order', sp_array_value( $_POST, 'sportspress_' . $this->template . '_template_order', false, 'key' ) );
if ( isset( $_POST['sportspress_template_visibility'] ) && is_array( $_POST['sportspress_template_visibility'] ) ) {
foreach ( $_POST['sportspress_template_visibility'] as $option => $toggled ) {

7315
includes/libraries/class-tgm-plugin-activation.php Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -394,8 +394,11 @@ final class SportsPress {
endswitch;
$config = array(
'id' => 'sportspress',
'default_path' => '',
'menu' => 'tgmpa-install-plugins',
'parent_slug' => 'plugins.php',
'capability' => 'manage_options',
'has_notices' => true,
'dismissable' => true,
'is_automatic' => true,