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 +5 -1 2.12.0 → 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',
@@ -67,8 +69,10 @@
67 69 'srfm_valid_url',
68 70 'srfm_confirm_email_same',
69 71 'srfm_valid_email',
70 72 'srfm_textarea_min_chars',
73 + 'srfm_email_local_max_length',
74 + 'srfm_email_domain_max_length',
71 75 'srfm_input_min_value',
72 76 'srfm_input_max_value',
73 77 'srfm_dropdown_min_selections',
74 78 'srfm_dropdown_max_selections',
@@ -280,9 +284,9 @@
280 284 * @since 2.6.0
281 285 * @return array<string,mixed>
282 286 */
283 287 private function sanitize_general_settings( $settings ) {
284 - $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' ];
285 289
286 290 foreach ( $boolean_keys as $key ) {
287 291 if ( isset( $settings[ $key ] ) ) {
288 292 $settings[ $key ] = rest_sanitize_boolean( Helper::get_string_value( $settings[ $key ] ) );