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

Version Description

  • 06-07-2022
  • Fix - Field validation params miss match.
Download this release

Release Info

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

Code changes from version 1.9.0 to 1.9.0.1

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.9.0
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.9.0.1
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: everest-forms
includes/abstracts/class-evf-form-fields.php CHANGED
@@ -99,7 +99,7 @@ abstract class EVF_Form_Fields {
99
  add_action( 'wp_ajax_everest_forms_new_field_' . $this->type, array( $this, 'field_new' ) );
100
  add_action( 'everest_forms_display_field_' . $this->type, array( $this, 'field_display' ), 10, 3 );
101
  add_action( 'everest_forms_display_edit_form_field_' . $this->type, array( $this, 'edit_form_field_display' ), 10, 3 );
102
- add_action( 'everest_forms_process_validate_' . $this->type, array( $this, 'validate' ), 10, 5 );
103
  add_action( 'everest_forms_process_format_' . $this->type, array( $this, 'format' ), 10, 4 );
104
  add_filter( 'everest_forms_field_properties', array( $this, 'field_prefill_value_property' ), 10, 3 );
105
  add_filter( 'everest_forms_field_exporter_' . $this->type, array( $this, 'field_exporter' ) );
@@ -2278,16 +2278,13 @@ abstract class EVF_Form_Fields {
2278
  * @param string $field_id Field Id.
2279
  * @param array $field_submit Submitted Data.
2280
  * @param array $form_data All Form Data.
2281
- * @param array $field_type Field Type.
2282
- * @param array $entry Entry.
2283
  */
2284
- public function validate( $field_id, $field_submit, $form_data, $field_type, $entry ) {
2285
  $field_type = isset( $form_data['form_fields'][ $field_id ]['type'] ) ? $form_data['form_fields'][ $field_id ]['type'] : '';
2286
  $required_field = isset( $form_data['form_fields'][ $field_id ]['required'] ) ? $form_data['form_fields'][ $field_id ]['required'] : false;
2287
  $conditional_status = isset( $form_data['form_fields'][ $field_id ]['conditional_logic_status'] ) ? $form_data['form_fields'][ $field_id ]['conditional_logic_status'] : 0;
2288
- $visible = apply_filters( 'everest_forms_visible_fields', true, $form_data['form_fields'][ $field_id ], $entry, $form_data );
2289
  // Basic required check - If field is marked as required, check for entry data.
2290
- if ( false !== $required_field && ( '1' !== $conditional_status || $visible ) && ( empty( $field_submit ) && '0' !== $field_submit ) ) {
2291
  evf()->task->errors[ $form_data['id'] ][ $field_id ] = evf_get_required_label();
2292
  update_option( 'evf_validation_error', 'yes' );
2293
  }
99
  add_action( 'wp_ajax_everest_forms_new_field_' . $this->type, array( $this, 'field_new' ) );
100
  add_action( 'everest_forms_display_field_' . $this->type, array( $this, 'field_display' ), 10, 3 );
101
  add_action( 'everest_forms_display_edit_form_field_' . $this->type, array( $this, 'edit_form_field_display' ), 10, 3 );
102
+ add_action( 'everest_forms_process_validate_' . $this->type, array( $this, 'validate' ), 10, 3 );
103
  add_action( 'everest_forms_process_format_' . $this->type, array( $this, 'format' ), 10, 4 );
104
  add_filter( 'everest_forms_field_properties', array( $this, 'field_prefill_value_property' ), 10, 3 );
105
  add_filter( 'everest_forms_field_exporter_' . $this->type, array( $this, 'field_exporter' ) );
2278
  * @param string $field_id Field Id.
2279
  * @param array $field_submit Submitted Data.
2280
  * @param array $form_data All Form Data.
 
 
2281
  */
2282
+ public function validate( $field_id, $field_submit, $form_data ) {
2283
  $field_type = isset( $form_data['form_fields'][ $field_id ]['type'] ) ? $form_data['form_fields'][ $field_id ]['type'] : '';
2284
  $required_field = isset( $form_data['form_fields'][ $field_id ]['required'] ) ? $form_data['form_fields'][ $field_id ]['required'] : false;
2285
  $conditional_status = isset( $form_data['form_fields'][ $field_id ]['conditional_logic_status'] ) ? $form_data['form_fields'][ $field_id ]['conditional_logic_status'] : 0;
 
2286
  // Basic required check - If field is marked as required, check for entry data.
2287
+ if ( false !== $required_field && '1' !== $conditional_status && ( empty( $field_submit ) && '0' !== $field_submit ) ) {
2288
  evf()->task->errors[ $form_data['id'] ][ $field_id ] = evf_get_required_label();
2289
  update_option( 'evf_validation_error', 'yes' );
2290
  }
includes/class-everest-forms.php CHANGED
@@ -21,7 +21,7 @@ final class EverestForms {
21
  *
22
  * @var string
23
  */
24
- public $version = '1.9.0';
25
 
26
  /**
27
  * The single instance of the class.
21
  *
22
  * @var string
23
  */
24
+ public $version = '1.9.0.1';
25
 
26
  /**
27
  * The single instance of the class.
includes/class-evf-form-task.php CHANGED
@@ -220,7 +220,7 @@ class EVF_Form_Task {
220
  "Everest Forms Process Before validate {$field_type}.",
221
  array( 'source' => 'form-submission' )
222
  );
223
- do_action( "everest_forms_process_validate_{$field_type}", $field_id, $field_submit, $this->form_data, $field_type, $entry );
224
  }
225
 
226
  if ( 'credit-card' === $field_type && isset( $_POST['everest_form_stripe_payment_intent_id'] ) ) {
220
  "Everest Forms Process Before validate {$field_type}.",
221
  array( 'source' => 'form-submission' )
222
  );
223
+ do_action( "everest_forms_process_validate_{$field_type}", $field_id, $field_submit, $this->form_data, $field_type );
224
  }
225
 
226
  if ( 'credit-card' === $field_type && isset( $_POST['everest_form_stripe_payment_intent_id'] ) ) {
includes/fields/class-evf-field-checkbox.php CHANGED
@@ -463,16 +463,13 @@ class EVF_Field_Checkbox extends EVF_Form_Fields {
463
  * @param int $field_id Field ID.
464
  * @param array $field_submit Submitted data.
465
  * @param array $form_data Form data.
466
- * @param array $field_type Field Type.
467
- * @param array $entry Entry.
468
  */
469
- public function validate( $field_id, $field_submit, $form_data, $field_type, $entry ) {
470
  $field_submit = (array) $field_submit;
471
  $form_id = $form_data['id'];
472
  $fields = $form_data['form_fields'];
473
  $choice_limit = empty( $fields[ $field_id ]['choice_limit'] ) ? 0 : (int) $fields[ $field_id ]['choice_limit'];
474
  $conditional_status = isset( $form_data['form_fields'][ $field_id ]['conditional_logic_status'] ) ? $form_data['form_fields'][ $field_id ]['conditional_logic_status'] : 0;
475
- $visible = apply_filters( 'everest_forms_visible_fields', true, $form_data['form_fields'][ $field_id ], $entry, $form_data );
476
 
477
  // Generating the error.
478
  if ( $choice_limit > 0 && $choice_limit < count( $field_submit ) ) {
@@ -481,7 +478,7 @@ class EVF_Field_Checkbox extends EVF_Form_Fields {
481
  }
482
 
483
  // Basic required check.
484
- if ( ! empty( $fields[ $field_id ]['required'] ) && ( '1' !== $conditional_status || $visible ) && ( empty( $field_submit ) || ( 1 === count( $field_submit ) && empty( $field_submit[0] ) ) ) ) {
485
  $error = evf_get_required_label();
486
  }
487
 
463
  * @param int $field_id Field ID.
464
  * @param array $field_submit Submitted data.
465
  * @param array $form_data Form data.
 
 
466
  */
467
+ public function validate( $field_id, $field_submit, $form_data ) {
468
  $field_submit = (array) $field_submit;
469
  $form_id = $form_data['id'];
470
  $fields = $form_data['form_fields'];
471
  $choice_limit = empty( $fields[ $field_id ]['choice_limit'] ) ? 0 : (int) $fields[ $field_id ]['choice_limit'];
472
  $conditional_status = isset( $form_data['form_fields'][ $field_id ]['conditional_logic_status'] ) ? $form_data['form_fields'][ $field_id ]['conditional_logic_status'] : 0;
 
473
 
474
  // Generating the error.
475
  if ( $choice_limit > 0 && $choice_limit < count( $field_submit ) ) {
478
  }
479
 
480
  // Basic required check.
481
+ if ( ! empty( $fields[ $field_id ]['required'] ) && '1' !== $conditional_status && ( empty( $field_submit ) || ( 1 === count( $field_submit ) && empty( $field_submit[0] ) ) ) ) {
482
  $error = evf_get_required_label();
483
  }
484
 
includes/fields/class-evf-field-email.php CHANGED
@@ -360,10 +360,8 @@ class EVF_Field_Email extends EVF_Form_Fields {
360
  * @param int $field_id Field ID.
361
  * @param array $field_submit Submitted data.
362
  * @param array $form_data Form data.
363
- * @param array $field_type Field Type.
364
- * @param array $entry Entry.
365
  */
366
- public function validate( $field_id, $field_submit, $form_data, $field_type, $entry ) {
367
  $form_id = (int) $form_data['id'];
368
  $conditional_status = isset( $form_data['form_fields'][ $field_id ]['conditional_logic_status'] ) ? $form_data['form_fields'][ $field_id ]['conditional_logic_status'] : 0;
369
 
360
  * @param int $field_id Field ID.
361
  * @param array $field_submit Submitted data.
362
  * @param array $form_data Form data.
 
 
363
  */
364
+ public function validate( $field_id, $field_submit, $form_data ) {
365
  $form_id = (int) $form_data['id'];
366
  $conditional_status = isset( $form_data['form_fields'][ $field_id ]['conditional_logic_status'] ) ? $form_data['form_fields'][ $field_id ]['conditional_logic_status'] : 0;
367
 
includes/fields/class-evf-field-number.php CHANGED
@@ -272,18 +272,15 @@ class EVF_Field_Number extends EVF_Form_Fields {
272
  * @param string $field_id Field Id.
273
  * @param array $field_submit Submitted Data.
274
  * @param array $form_data All Form Data.
275
- * @param array $field_type Field Type.
276
- * @param array $entry Entry.
277
  */
278
- public function validate( $field_id, $field_submit, $form_data, $field_type, $entry ) {
279
  $form_id = absint( $form_data['id'] );
280
  $min_value = isset( $form_data['form_fields'][ $field_id ]['min_value'] ) ? floatval( $form_data['form_fields'][ $field_id ]['min_value'] ) : 0;
281
  $max_value = isset( $form_data['form_fields'][ $field_id ]['max_value'] ) ? floatval( $form_data['form_fields'][ $field_id ]['max_value'] ) : 0;
282
  $conditional_status = isset( $form_data['form_fields'][ $field_id ]['conditional_logic_status'] ) ? $form_data['form_fields'][ $field_id ]['conditional_logic_status'] : 0;
283
- $visible = apply_filters( 'everest_forms_visible_fields', true, $form_data['form_fields'][ $field_id ], $entry, $form_data );
284
 
285
  // Basic required check - If field is marked as required, check for entry data.
286
- if ( ! empty( $form_data['form_fields'][ $field_id ]['required'] ) && ( '1' !== $conditional_status || $visible ) && empty( $field_submit ) && '0' !== $field_submit ) {
287
  evf()->task->errors[ $form_id ][ $field_id ] = evf_get_required_label();
288
  update_option( 'evf_validation_error', 'yes' );
289
  }
272
  * @param string $field_id Field Id.
273
  * @param array $field_submit Submitted Data.
274
  * @param array $form_data All Form Data.
 
 
275
  */
276
+ public function validate( $field_id, $field_submit, $form_data ) {
277
  $form_id = absint( $form_data['id'] );
278
  $min_value = isset( $form_data['form_fields'][ $field_id ]['min_value'] ) ? floatval( $form_data['form_fields'][ $field_id ]['min_value'] ) : 0;
279
  $max_value = isset( $form_data['form_fields'][ $field_id ]['max_value'] ) ? floatval( $form_data['form_fields'][ $field_id ]['max_value'] ) : 0;
280
  $conditional_status = isset( $form_data['form_fields'][ $field_id ]['conditional_logic_status'] ) ? $form_data['form_fields'][ $field_id ]['conditional_logic_status'] : 0;
 
281
 
282
  // Basic required check - If field is marked as required, check for entry data.
283
+ if ( ! empty( $form_data['form_fields'][ $field_id ]['required'] ) && '1' !== $conditional_status && empty( $field_submit ) && '0' !== $field_submit ) {
284
  evf()->task->errors[ $form_id ][ $field_id ] = evf_get_required_label();
285
  update_option( 'evf_validation_error', 'yes' );
286
  }
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.9.0\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-07-06T05:44:35+02:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: everest-forms\n"
@@ -672,15 +672,15 @@ msgstr ""
672
  msgid "Settings"
673
  msgstr ""
674
 
675
- #: includes/abstracts/class-evf-form-fields.php:2299
676
  msgid "Please enter a valid url"
677
  msgstr ""
678
 
679
- #: includes/abstracts/class-evf-form-fields.php:2309
680
  msgid "Please enter a valid email address"
681
  msgstr ""
682
 
683
- #: includes/abstracts/class-evf-form-fields.php:2314
684
  msgid "Please enter a valid number"
685
  msgstr ""
686
 
@@ -2078,7 +2078,7 @@ msgid "Enter the message for the valid email"
2078
  msgstr ""
2079
 
2080
  #: includes/admin/settings/class-evf-settings-validation.php:70
2081
- #: includes/fields/class-evf-field-email.php:402
2082
  msgid "Please enter a valid email address."
2083
  msgstr ""
2084
 
@@ -2118,7 +2118,7 @@ msgstr ""
2118
 
2119
  #: includes/admin/settings/class-evf-settings-validation.php:97
2120
  #: includes/class-evf-frontend-scripts.php:295
2121
- #: includes/fields/class-evf-field-checkbox.php:479
2122
  msgid "You have exceeded number of allowed selections: {#}."
2123
  msgstr ""
2124
 
@@ -2132,7 +2132,7 @@ msgid "Enter the message for the valid number"
2132
  msgstr ""
2133
 
2134
  #: includes/admin/settings/class-evf-settings-validation.php:106
2135
- #: includes/fields/class-evf-field-number.php:293
2136
  msgid "Please enter a valid number."
2137
  msgstr ""
2138
 
@@ -4769,7 +4769,7 @@ msgstr ""
4769
  msgid "Enter text for the confirmation field placeholder."
4770
  msgstr ""
4771
 
4772
- #: includes/fields/class-evf-field-email.php:410
4773
  msgid "Confirmation Email do not match."
4774
  msgstr ""
4775
 
@@ -4818,12 +4818,12 @@ msgid "Maximum value user is allowed to enter."
4818
  msgstr ""
4819
 
4820
  #. translators: %s - minimum value.
4821
- #: includes/fields/class-evf-field-number.php:300
4822
  msgid "Please enter a value greater than or equal to %s"
4823
  msgstr ""
4824
 
4825
  #. translators: %s - maximum value.
4826
- #: includes/fields/class-evf-field-number.php:304
4827
  msgid "Please enter a value less than or equal to %s"
4828
  msgstr ""
4829
 
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.9.0.1\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-07-06T13:27:14+02:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: everest-forms\n"
672
  msgid "Settings"
673
  msgstr ""
674
 
675
+ #: includes/abstracts/class-evf-form-fields.php:2296
676
  msgid "Please enter a valid url"
677
  msgstr ""
678
 
679
+ #: includes/abstracts/class-evf-form-fields.php:2306
680
  msgid "Please enter a valid email address"
681
  msgstr ""
682
 
683
+ #: includes/abstracts/class-evf-form-fields.php:2311
684
  msgid "Please enter a valid number"
685
  msgstr ""
686
 
2078
  msgstr ""
2079
 
2080
  #: includes/admin/settings/class-evf-settings-validation.php:70
2081
+ #: includes/fields/class-evf-field-email.php:400
2082
  msgid "Please enter a valid email address."
2083
  msgstr ""
2084
 
2118
 
2119
  #: includes/admin/settings/class-evf-settings-validation.php:97
2120
  #: includes/class-evf-frontend-scripts.php:295
2121
+ #: includes/fields/class-evf-field-checkbox.php:476
2122
  msgid "You have exceeded number of allowed selections: {#}."
2123
  msgstr ""
2124
 
2132
  msgstr ""
2133
 
2134
  #: includes/admin/settings/class-evf-settings-validation.php:106
2135
+ #: includes/fields/class-evf-field-number.php:290
2136
  msgid "Please enter a valid number."
2137
  msgstr ""
2138
 
4769
  msgid "Enter text for the confirmation field placeholder."
4770
  msgstr ""
4771
 
4772
+ #: includes/fields/class-evf-field-email.php:408
4773
  msgid "Confirmation Email do not match."
4774
  msgstr ""
4775
 
4818
  msgstr ""
4819
 
4820
  #. translators: %s - minimum value.
4821
+ #: includes/fields/class-evf-field-number.php:297
4822
  msgid "Please enter a value greater than or equal to %s"
4823
  msgstr ""
4824
 
4825
  #. translators: %s - maximum value.
4826
+ #: includes/fields/class-evf-field-number.php:301
4827
  msgid "Please enter a value less than or equal to %s"
4828
  msgstr ""
4829
 
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: 6.0
6
  Requires PHP: 5.4
7
- Stable tag: 1.9.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -313,6 +313,8 @@ Yes you can! Join in on our [GitHub repository](https://github.com/wpeverest/eve
313
 
314
  == Changelog ==
315
 
 
 
316
 
317
  = 1.9.0 - 06-07-2022
318
  * Enhancement - PDF send to Google Drive or Dropbox.
4
  Requires at least: 5.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.4
7
+ Stable tag: 1.9.0.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
313
 
314
  == Changelog ==
315
 
316
+ = 1.9.0.1 - 06-07-2022
317
+ * Fix - Field validation params miss match.
318
 
319
  = 1.9.0 - 06-07-2022
320
  * Enhancement - PDF send to Google Drive or Dropbox.