$value ) { if ( isset( $current_options[ $name ] ) ) { $options[ $name ] = $current_options[ $name ]; } } ITSEC_Modules::set_settings( 'backup', $options ); } } if ( $build < 4069 ) { delete_site_option( 'itsec_backup' ); } if ( $build < 4079 ) { wp_clear_scheduled_hook( 'itsec_execute_backup_cron' ); } if ( $build < 4123 ) { $update = [ 'both', 'email', 'local', ]; $legacy = ITSEC_Modules::get_setting( 'backup', 'method' ); $new = $update[ $legacy ] ?? ITSEC_Modules::get_default( 'backup', 'method' ); ITSEC_Modules::set_setting( 'backup', 'method', $new ); } } } new ITSEC_Backup_Setup();