PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/abilities/settings/update-global-settings.php +3 -1 2.12.2 → 2.12.8 View file →
@@ -46,8 +46,10 @@
46 46 'srfm_ip_log',
47 47 'srfm_form_analytics',
48 48 'srfm_bsf_analytics',
49 49 'srfm_admin_notification',
50 + 'srfm_form_views_tracking',
51 + 'srfm_enable_logs',
50 52 ],
51 53 'validation-messages' => [
52 54 'srfm_url_block_required_text',
53 55 'srfm_input_block_required_text',
@@ -282,9 +284,9 @@
282 284 * @since 2.6.0
283 285 * @return array<string,mixed>
284 286 */
285 287 private function sanitize_general_settings( $settings ) {
286 - $boolean_keys = [ 'srfm_ip_log', 'srfm_form_analytics', 'srfm_bsf_analytics', 'srfm_admin_notification' ];
288 + $boolean_keys = [ 'srfm_ip_log', 'srfm_form_analytics', 'srfm_bsf_analytics', 'srfm_admin_notification', 'srfm_form_views_tracking', 'srfm_enable_logs' ];
287 289
288 290 foreach ( $boolean_keys as $key ) {
289 291 if ( isset( $settings[ $key ] ) ) {
290 292 $settings[ $key ] = rest_sanitize_boolean( Helper::get_string_value( $settings[ $key ] ) );