Everest Forms – Easy Contact Form and Form Builder - Version 1.8.3

Version Description

  • 17-01-2022 =
  • Fix - Repeater fields not working.
  • Fix - Wp_remote_get issues ssl issues.
  • Fix - Form submission issues with Min Max value and Conditional Logic.
Download this release

Release Info

Developer everestforms
Plugin Icon 128x128 Everest Forms – Easy Contact Form and Form Builder
Version 1.8.3
Comparing to
See all releases

Code changes from version 1.8.2.3 to 1.8.3

everest-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Everest Forms
4
  * Plugin URI: https://wpeverest.com/wordpress-plugins/everest-forms/
5
  * Description: Drag and Drop contact form builder to easily create simple to complex forms for any purpose. Lightweight, Beautiful design, responsive and more.
6
- * Version: 1.8.2.3
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: everest-forms
3
  * Plugin Name: Everest Forms
4
  * Plugin URI: https://wpeverest.com/wordpress-plugins/everest-forms/
5
  * Description: Drag and Drop contact form builder to easily create simple to complex forms for any purpose. Lightweight, Beautiful design, responsive and more.
6
+ * Version: 1.8.3
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: everest-forms
includes/abstracts/class-evf-form-fields.php CHANGED
@@ -1534,7 +1534,7 @@ abstract class EVF_Form_Fields {
1534
  foreach ( $values as $value ) {
1535
  $default = isset( $value['default'] ) ? $value['default'] : '';
1536
  $selected = checked( '1', $default, false );
1537
- $placeholder = wp_remote_get( evf()->plugin_url() . '/assets/images/everest-forms-placeholder.png' );
1538
  $image_src = ! empty( $value['image'] ) ? esc_url( $value['image'] ) : $placeholder;
1539
  $item_class = array();
1540
 
1534
  foreach ( $values as $value ) {
1535
  $default = isset( $value['default'] ) ? $value['default'] : '';
1536
  $selected = checked( '1', $default, false );
1537
+ $placeholder = wp_remote_get( evf()->plugin_url( 'assets/images/everest-forms-placeholder.png' ), array( 'sslverify' => false ) );
1538
  $image_src = ! empty( $value['image'] ) ? esc_url( $value['image'] ) : $placeholder;
1539
  $item_class = array();
1540
 
includes/admin/class-evf-admin-addons.php CHANGED
@@ -22,7 +22,7 @@ class EVF_Admin_Addons {
22
  $addon_sections = get_transient( 'evf_addons_sections' );
23
 
24
  if ( false === $addon_sections ) {
25
- $raw_sections = wp_safe_remote_get( evf()->plugin_url() . '/assets/extensions-json/addon-sections.json' );
26
 
27
  if ( ! is_wp_error( $raw_sections ) ) {
28
  $addon_sections = json_decode( wp_remote_retrieve_body( $raw_sections ) );
@@ -45,7 +45,7 @@ class EVF_Admin_Addons {
45
  $extension_data = get_transient( 'evf_extensions_section' );
46
 
47
  if ( false === $extension_data ) {
48
- $raw_extensions = wp_safe_remote_get( evf()->plugin_url() . '/assets/extensions-json/sections/all_extensions.json' );
49
 
50
  if ( ! is_wp_error( $raw_extensions ) ) {
51
  $extension_data = json_decode( wp_remote_retrieve_body( $raw_extensions ) );
22
  $addon_sections = get_transient( 'evf_addons_sections' );
23
 
24
  if ( false === $addon_sections ) {
25
+ $raw_sections = wp_remote_get( evf()->plugin_url( '/assets/extensions-json/addon-sections.json' ), array( 'sslverify' => false ) );
26
 
27
  if ( ! is_wp_error( $raw_sections ) ) {
28
  $addon_sections = json_decode( wp_remote_retrieve_body( $raw_sections ) );
45
  $extension_data = get_transient( 'evf_extensions_section' );
46
 
47
  if ( false === $extension_data ) {
48
+ $raw_extensions = wp_remote_get( evf()->plugin_url( 'assets/extensions-json/sections/all_extensions.json' ), array( 'sslverify' => false ) );
49
 
50
  if ( ! is_wp_error( $raw_extensions ) ) {
51
  $extension_data = json_decode( wp_remote_retrieve_body( $raw_extensions ) );
includes/admin/class-evf-admin-forms.php CHANGED
@@ -83,7 +83,7 @@ class EVF_Admin_Forms {
83
  $template_sections = get_transient( 'evf_template_sections' );
84
 
85
  if ( false === $template_sections ) {
86
- $raw_sections = wp_safe_remote_get( evf()->plugin_url() . '/assets/extensions-json/templates/template-sections.json' );
87
 
88
  if ( ! is_wp_error( $raw_sections ) ) {
89
  $template_sections = json_decode( wp_remote_retrieve_body( $raw_sections ) );
@@ -106,7 +106,7 @@ class EVF_Admin_Forms {
106
  $template_data = get_transient( 'evf_template_section' );
107
 
108
  if ( false === $template_data ) {
109
- $raw_templates = wp_safe_remote_get( evf()->plugin_url() . '/assets/extensions-json/templates/all_templates.json' );
110
 
111
  if ( ! is_wp_error( $raw_templates ) ) {
112
  $template_data = json_decode( wp_remote_retrieve_body( $raw_templates ) );
83
  $template_sections = get_transient( 'evf_template_sections' );
84
 
85
  if ( false === $template_sections ) {
86
+ $raw_sections = wp_remote_get( evf()->plugin_url( 'assets/extensions-json/templates/template-sections.json' ), array( 'sslverify' => false ) );
87
 
88
  if ( ! is_wp_error( $raw_sections ) ) {
89
  $template_sections = json_decode( wp_remote_retrieve_body( $raw_sections ) );
106
  $template_data = get_transient( 'evf_template_section' );
107
 
108
  if ( false === $template_data ) {
109
+ $raw_templates = wp_remote_get( evf()->plugin_url( 'assets/extensions-json/templates/all_templates.json' ), array( 'sslverify' => false ) );
110
 
111
  if ( ! is_wp_error( $raw_templates ) ) {
112
  $template_data = json_decode( wp_remote_retrieve_body( $raw_templates ) );
includes/admin/class-evf-admin.php CHANGED
@@ -108,7 +108,7 @@ class EVF_Admin {
108
  public function template_actions() {
109
  if ( isset( $_GET['page'], $_REQUEST['action'] ) && 'evf-builder' === $_GET['page'] ) {
110
  $action = sanitize_text_field( wp_unslash( $_REQUEST['action'] ) );
111
- $raw_templates = wp_safe_remote_get( evf()->plugin_url() . '/assets/extensions-json/templates/all_templates.json' );
112
 
113
  if ( 'evf-template-refresh' === $action && ! is_wp_error( $raw_templates ) ) {
114
  if ( empty( $_GET['evf-template-nonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_GET['evf-template-nonce'] ) ), 'refresh' ) ) {
108
  public function template_actions() {
109
  if ( isset( $_GET['page'], $_REQUEST['action'] ) && 'evf-builder' === $_GET['page'] ) {
110
  $action = sanitize_text_field( wp_unslash( $_REQUEST['action'] ) );
111
+ $raw_templates = wp_remote_get( evf()->plugin_url( 'assets/extensions-json/templates/all_templates.json' ), array( 'sslverify' => false ) );
112
 
113
  if ( 'evf-template-refresh' === $action && ! is_wp_error( $raw_templates ) ) {
114
  if ( empty( $_GET['evf-template-nonce'] ) || ! wp_verify_nonce( sanitize_key( wp_unslash( $_GET['evf-template-nonce'] ) ), 'refresh' ) ) {
includes/class-everest-forms.php CHANGED
@@ -21,7 +21,7 @@ final class EverestForms {
21
  *
22
  * @var string
23
  */
24
- public $version = '1.8.2.3';
25
 
26
  /**
27
  * The single instance of the class.
@@ -365,10 +365,12 @@ final class EverestForms {
365
  /**
366
  * Get the plugin url.
367
  *
 
 
368
  * @return string
369
  */
370
- public function plugin_url() {
371
- return untrailingslashit( plugins_url( '/', EVF_PLUGIN_FILE ) );
372
  }
373
 
374
  /**
21
  *
22
  * @var string
23
  */
24
+ public $version = '1.8.3';
25
 
26
  /**
27
  * The single instance of the class.
365
  /**
366
  * Get the plugin url.
367
  *
368
+ * @param String $path Path.
369
+ *
370
  * @return string
371
  */
372
+ public function plugin_url( $path = '/' ) {
373
+ return untrailingslashit( plugins_url( $path, EVF_PLUGIN_FILE ) );
374
  }
375
 
376
  /**
includes/class-evf-ajax.php CHANGED
@@ -383,7 +383,7 @@ class EVF_AJAX {
383
  }
384
 
385
  $addons = array();
386
- $raw_templates = wp_safe_remote_get( evf()->plugin_url() . '/assets/extensions-json/templates/all_templates.json' );
387
 
388
  if ( ! is_wp_error( $raw_templates ) ) {
389
  $template_data = json_decode( wp_remote_retrieve_body( $raw_templates ) );
383
  }
384
 
385
  $addons = array();
386
+ $raw_templates = wp_remote_get( evf()->plugin_url( 'assets/extensions-json/templates/all_templates.json' ), array( 'sslverify' => false ) );
387
 
388
  if ( ! is_wp_error( $raw_templates ) ) {
389
  $template_data = json_decode( wp_remote_retrieve_body( $raw_templates ) );
includes/class-evf-form-handler.php CHANGED
@@ -208,7 +208,7 @@ class EVF_Form_Handler {
208
  )
209
  );
210
 
211
- $raw_templates = wp_safe_remote_get( evf()->plugin_url() . '/assets/extensions-json/templates/all_templates.json' );
212
  $templates = json_decode( wp_remote_retrieve_body( $raw_templates ) );
213
 
214
  if ( ! empty( $templates ) ) {
208
  )
209
  );
210
 
211
+ $raw_templates = wp_remote_get( evf()->plugin_url( 'assets/extensions-json/templates/all_templates.json' ), array( 'sslverify' => false ) );
212
  $templates = json_decode( wp_remote_retrieve_body( $raw_templates ) );
213
 
214
  if ( ! empty( $templates ) ) {
includes/class-evf-form-task.php CHANGED
@@ -136,9 +136,10 @@ class EVF_Form_Task {
136
  $field_submit = isset( $field_submit['signature_image'] ) ? $field_submit['signature_image'] : '';
137
  }
138
 
139
- $exclude = array( 'title', 'html', 'captcha', 'image-upload', 'file-upload' );
140
 
141
  if ( ! in_array( $field_type, $exclude, true ) ) {
 
142
  $this->form_fields[ $field_id ] = array(
143
  'id' => $field_id,
144
  'name' => sanitize_text_field( $field['label'] ),
136
  $field_submit = isset( $field_submit['signature_image'] ) ? $field_submit['signature_image'] : '';
137
  }
138
 
139
+ $exclude = array( 'title', 'html', 'captcha', 'image-upload', 'file-upload', 'divider' );
140
 
141
  if ( ! in_array( $field_type, $exclude, true ) ) {
142
+
143
  $this->form_fields[ $field_id ] = array(
144
  'id' => $field_id,
145
  'name' => sanitize_text_field( $field['label'] ),
includes/evf-core-functions.php CHANGED
@@ -2386,8 +2386,12 @@ function evf_process_line_breaks( $text ) {
2386
  function evf_get_allowed_html_tags( $context = '' ) {
2387
  $post_tags = wp_kses_allowed_html( 'post' );
2388
  if ( 'builder' === $context ) {
2389
- $response = wp_safe_remote_get( evf()->plugin_url() . '/assets/allowed_tags/allowed_tags.json' );
2390
- if ( $response && 200 === $response['response']['code'] ) {
 
 
 
 
2391
  $json = wp_remote_retrieve_body( $response );
2392
  if ( ! empty( $json ) ) {
2393
  $allowed_tags = json_decode( $json, true );
@@ -2405,6 +2409,7 @@ function evf_get_allowed_html_tags( $context = '' ) {
2405
  }
2406
  }
2407
  }
 
2408
  }
2409
  return $post_tags;
2410
  }
@@ -2504,6 +2509,9 @@ function evf_sanitize_entry( $entry = array() ) {
2504
  case 'privacy-policy':
2505
  $entry['form_fields'][ $key ] = wp_kses_post( $entry['form_fields'][ $key ] );
2506
  break;
 
 
 
2507
  default:
2508
  if ( is_array( $entry['form_fields'][ $key ] ) ) {
2509
  foreach ( $entry['form_fields'][ $key ] as $field_key => $value ) {
2386
  function evf_get_allowed_html_tags( $context = '' ) {
2387
  $post_tags = wp_kses_allowed_html( 'post' );
2388
  if ( 'builder' === $context ) {
2389
+ $builder_tags = get_transient( 'evf-builder-tags' );
2390
+ if ( ! empty( $builder_tags ) ) {
2391
+ return $builder_tags;
2392
+ }
2393
+ $response = wp_remote_get( evf()->plugin_url( 'assets/allowed_tags/allowed_tags.json' ), array( 'sslverify' => false ) );
2394
+ if ( ! is_wp_error( $response ) ) {
2395
  $json = wp_remote_retrieve_body( $response );
2396
  if ( ! empty( $json ) ) {
2397
  $allowed_tags = json_decode( $json, true );
2409
  }
2410
  }
2411
  }
2412
+ set_transient( 'evf-builder-tags', $post_tags, DAY_IN_SECONDS );
2413
  }
2414
  return $post_tags;
2415
  }
2509
  case 'privacy-policy':
2510
  $entry['form_fields'][ $key ] = wp_kses_post( $entry['form_fields'][ $key ] );
2511
  break;
2512
+ case 'repeater-fields':
2513
+ $entry['form_fields'][ $key ] = $entry['form_fields'][ $key ];
2514
+ break;
2515
  default:
2516
  if ( is_array( $entry['form_fields'][ $key ] ) ) {
2517
  foreach ( $entry['form_fields'][ $key ] as $field_key => $value ) {
includes/fields/class-evf-field-number.php CHANGED
@@ -292,11 +292,11 @@ class EVF_Field_Number extends EVF_Form_Fields {
292
  }
293
 
294
  // Check if minimum and maximum value is valid.
295
- if ( ! empty( $form_data['form_fields'][ $field_id ]['min_value'] ) && floatval( $field_submit ) < $min_value ) {
296
  /* translators: %s - minimum value. */
297
  evf()->task->errors[ $form_id ][ $field_id ] = sprintf( esc_html__( 'Please enter a value greater than or equal to %s', 'everest-forms' ), absint( $min_value ) );
298
  update_option( 'evf_validation_error', 'yes' );
299
- } elseif ( ! empty( $form_data['form_fields'][ $field_id ]['max_value'] ) && floatval( $field_submit ) > $max_value ) {
300
  /* translators: %s - maximum value. */
301
  evf()->task->errors[ $form_id ][ $field_id ] = sprintf( esc_html__( 'Please enter a value less than or equal to %s', 'everest-forms' ), absint( $max_value ) );
302
  update_option( 'evf_validation_error', 'yes' );
292
  }
293
 
294
  // Check if minimum and maximum value is valid.
295
+ if ( ! empty( $form_data['form_fields'][ $field_id ]['min_value'] ) && ! empty( $field_submit ) && floatval( $field_submit ) < $min_value ) {
296
  /* translators: %s - minimum value. */
297
  evf()->task->errors[ $form_id ][ $field_id ] = sprintf( esc_html__( 'Please enter a value greater than or equal to %s', 'everest-forms' ), absint( $min_value ) );
298
  update_option( 'evf_validation_error', 'yes' );
299
+ } elseif ( ! empty( $form_data['form_fields'][ $field_id ]['max_value'] ) && ! empty( $field_submit ) && floatval( $field_submit ) > $max_value ) {
300
  /* translators: %s - maximum value. */
301
  evf()->task->errors[ $form_id ][ $field_id ] = sprintf( esc_html__( 'Please enter a value less than or equal to %s', 'everest-forms' ), absint( $max_value ) );
302
  update_option( 'evf_validation_error', 'yes' );
languages/everest-forms.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Everest Forms plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Everest Forms 1.8.2.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/everest-forms\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-01-04T05:24:15+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: everest-forms\n"
@@ -665,7 +665,7 @@ msgstr ""
665
  #: includes/admin/builder/class-evf-builder-settings.php:77
666
  #: includes/admin/builder/class-evf-builder-settings.php:360
667
  #: includes/admin/builder/class-evf-builder-settings.php:420
668
- #: includes/class-evf-form-task.php:619
669
  #: includes/evf-update-functions.php:140
670
  #: includes/templates/contact.php:71
671
  msgid "Admin Notification"
@@ -2463,41 +2463,41 @@ msgstr ""
2463
  msgid "Invalid form. Please check again."
2464
  msgstr ""
2465
 
2466
- #: includes/class-evf-form-task.php:178
2467
- #: includes/class-evf-form-task.php:230
2468
- #: includes/class-evf-form-task.php:282
2469
  msgid "Form has not been submitted, please see the errors below."
2470
  msgstr ""
2471
 
2472
- #: includes/class-evf-form-task.php:200
2473
  msgid "Google reCAPTCHA verification failed, please try again later."
2474
  msgstr ""
2475
 
2476
- #: includes/class-evf-form-task.php:238
2477
  msgid "Everest Forms honeypot field triggered."
2478
  msgstr ""
2479
 
2480
- #: includes/class-evf-form-task.php:316
2481
  #: includes/shortcodes/class-evf-shortcode-form.php:806
2482
  #: includes/templates/contact.php:61
2483
  msgid "Thanks for contacting us! We will be in touch with you shortly."
2484
  msgstr ""
2485
 
2486
- #: includes/class-evf-form-task.php:341
2487
  #: templates/notices/success.php:63
2488
  msgid "Download your form submission in PDF format"
2489
  msgstr ""
2490
 
2491
  #. translators: %s - form name.
2492
- #: includes/class-evf-form-task.php:647
2493
  msgid "New %s Entry"
2494
  msgstr ""
2495
 
2496
- #: includes/class-evf-form-task.php:747
2497
  msgid "No form ID was found."
2498
  msgstr ""
2499
 
2500
- #: includes/class-evf-form-task.php:754
2501
  msgid "Could not create an entry"
2502
  msgstr ""
2503
 
2
  # This file is distributed under the same license as the Everest Forms plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Everest Forms 1.8.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/everest-forms\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-01-17T08:46:42+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: everest-forms\n"
665
  #: includes/admin/builder/class-evf-builder-settings.php:77
666
  #: includes/admin/builder/class-evf-builder-settings.php:360
667
  #: includes/admin/builder/class-evf-builder-settings.php:420
668
+ #: includes/class-evf-form-task.php:620
669
  #: includes/evf-update-functions.php:140
670
  #: includes/templates/contact.php:71
671
  msgid "Admin Notification"
2463
  msgid "Invalid form. Please check again."
2464
  msgstr ""
2465
 
2466
+ #: includes/class-evf-form-task.php:179
2467
+ #: includes/class-evf-form-task.php:231
2468
+ #: includes/class-evf-form-task.php:283
2469
  msgid "Form has not been submitted, please see the errors below."
2470
  msgstr ""
2471
 
2472
+ #: includes/class-evf-form-task.php:201
2473
  msgid "Google reCAPTCHA verification failed, please try again later."
2474
  msgstr ""
2475
 
2476
+ #: includes/class-evf-form-task.php:239
2477
  msgid "Everest Forms honeypot field triggered."
2478
  msgstr ""
2479
 
2480
+ #: includes/class-evf-form-task.php:317
2481
  #: includes/shortcodes/class-evf-shortcode-form.php:806
2482
  #: includes/templates/contact.php:61
2483
  msgid "Thanks for contacting us! We will be in touch with you shortly."
2484
  msgstr ""
2485
 
2486
+ #: includes/class-evf-form-task.php:342
2487
  #: templates/notices/success.php:63
2488
  msgid "Download your form submission in PDF format"
2489
  msgstr ""
2490
 
2491
  #. translators: %s - form name.
2492
+ #: includes/class-evf-form-task.php:648
2493
  msgid "New %s Entry"
2494
  msgstr ""
2495
 
2496
+ #: includes/class-evf-form-task.php:748
2497
  msgid "No form ID was found."
2498
  msgstr ""
2499
 
2500
+ #: includes/class-evf-form-task.php:755
2501
  msgid "Could not create an entry"
2502
  msgstr ""
2503
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: contact form, forms, form builder, contact, custom form
4
  Requires at least: 5.0
5
  Tested up to: 5.8.2
6
  Requires PHP: 5.4
7
- Stable tag: 1.8.2.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -302,6 +302,11 @@ Yes you can! Join in on our [GitHub repository](https://github.com/wpeverest/eve
302
 
303
  == Changelog ==
304
 
 
 
 
 
 
305
  = 1.8.2.3 - 04-01-2022 =
306
  * Fix - Account Integration issues with addons.
307
 
4
  Requires at least: 5.0
5
  Tested up to: 5.8.2
6
  Requires PHP: 5.4
7
+ Stable tag: 1.8.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
302
 
303
  == Changelog ==
304
 
305
+ = 1.8.3 - 17-01-2022 =
306
+ * Fix - Repeater fields not working.
307
+ * Fix - Wp_remote_get issues ssl issues.
308
+ * Fix - Form submission issues with Min Max value and Conditional Logic.
309
+
310
  = 1.8.2.3 - 04-01-2022 =
311
  * Fix - Account Integration issues with addons.
312