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

Version Description

  • 02-03-2020 =
  • Fix - Form not saved while using smart tag.
  • Fix - Deactivation notice.
  • Fix - Invalid argument in entries view.
  • Fix - Import export file name.
Download this release

Release Info

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

Code changes from version 1.6.2 to 1.6.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.6.2
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.6.3
7
  * Author: WPEverest
8
  * Author URI: https://wpeverest.com
9
  * Text Domain: everest-forms
includes/admin/class-evf-admin-import-export.php CHANGED
@@ -52,7 +52,7 @@ class EVF_Admin_Import_Export {
52
  ),
53
  );
54
  $form_name = strtolower( str_replace( ' ', '-', get_the_title( $form_id ) ) );
55
- $file_name = $form_name . '-' . current_time( 'Y-m-d_H:i:s' ) . '.json';
56
 
57
  if ( ob_get_contents() ) {
58
  ob_clean();
@@ -62,7 +62,7 @@ class EVF_Admin_Import_Export {
62
  // Force download.
63
  header( 'Content-Type: application/force-download' );
64
  // Disposition / Encoding on response body.
65
- header( "Content-Disposition: attachment;filename={$file_name}" );
66
  header( 'Content-type: application/json' );
67
  echo $export_json; // phpcs:ignore WordPress.Security.EscapeOutput
68
  exit();
52
  ),
53
  );
54
  $form_name = strtolower( str_replace( ' ', '-', get_the_title( $form_id ) ) );
55
+ $file_name = html_entity_decode( $form_name, ENT_QUOTES, 'UTF-8' ) . '-' . current_time( 'Y-m-d_H:i:s' ) . '.json';
56
 
57
  if ( ob_get_contents() ) {
58
  ob_clean();
62
  // Force download.
63
  header( 'Content-Type: application/force-download' );
64
  // Disposition / Encoding on response body.
65
+ header( "Content-Disposition: attachment;filename={$file_name}; charset=utf-8" );
66
  header( 'Content-type: application/json' );
67
  echo $export_json; // phpcs:ignore WordPress.Security.EscapeOutput
68
  exit();
includes/class-everest-forms.php CHANGED
@@ -21,7 +21,7 @@ final class EverestForms {
21
  *
22
  * @var string
23
  */
24
- public $version = '1.6.2';
25
 
26
  /**
27
  * The single instance of the class.
21
  *
22
  * @var string
23
  */
24
+ public $version = '1.6.3';
25
 
26
  /**
27
  * The single instance of the class.
includes/class-evf-ajax.php CHANGED
@@ -195,7 +195,7 @@ class EVF_AJAX {
195
  die( esc_html__( 'No data provided', 'everest-forms' ) );
196
  }
197
 
198
- $form_post = json_decode( stripslashes( wp_unslash( $_POST['form_data'] ) ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
199
 
200
  $data = array();
201
 
@@ -614,7 +614,7 @@ class EVF_AJAX {
614
  );
615
 
616
  /* translators: %1$s - deactivation reason page; %2$d - deactivation url. */
617
- $deactivation_notice = sprintf( esc_html__( 'Before we deactivate Everest Forms, would you care to <a href="%1$s" target="_blank">let us know why</a> so we can improve it for you? <a href="%2$s">No, deactivate now</a>.', 'everest-forms' ), 'https://wpeverest.com/deactivation/everest-forms/', $deactivate_url );
618
 
619
  wp_send_json(
620
  array(
195
  die( esc_html__( 'No data provided', 'everest-forms' ) );
196
  }
197
 
198
+ $form_post = json_decode( stripslashes( $_POST['form_data'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash
199
 
200
  $data = array();
201
 
614
  );
615
 
616
  /* translators: %1$s - deactivation reason page; %2$d - deactivation url. */
617
+ $deactivation_notice = sprintf( __( 'Before we deactivate Everest Forms, would you care to <a href="%1$s" target="_blank">let us know why</a> so we can improve it for you? <a href="%2$s">No, deactivate now</a>.', 'everest-forms' ), 'https://wpeverest.com/deactivation/everest-forms/', $deactivate_url );
618
 
619
  wp_send_json(
620
  array(
includes/export/abstract-evf-csv-exporter.php CHANGED
@@ -327,14 +327,18 @@ abstract class EVF_CSV_Exporter {
327
  protected function implode_values( $values ) {
328
  $values_to_implode = array();
329
 
330
- // For checkboxe and radio.
331
  if ( ! empty( $values['label'] ) ) {
332
  $values = $values['label'];
333
  }
334
 
335
- foreach ( $values as $value ) {
336
- $value = (string) is_scalar( $value ) ? $value : '';
337
- $values_to_implode[] = str_replace( ',', '\\,', $value );
 
 
 
 
338
  }
339
 
340
  return implode( ', ', $values_to_implode );
327
  protected function implode_values( $values ) {
328
  $values_to_implode = array();
329
 
330
+ // For checkbox and radio.
331
  if ( ! empty( $values['label'] ) ) {
332
  $values = $values['label'];
333
  }
334
 
335
+ if ( is_array( $values ) ) {
336
+ foreach ( $values as $value ) {
337
+ $value = is_scalar( $value ) ? (string) $value : '';
338
+ $values_to_implode[] = str_replace( ',', '\\,', $value );
339
+ }
340
+ } else {
341
+ $values_to_implode[] = str_replace( ',', '\\,', $values );
342
  }
343
 
344
  return implode( ', ', $values_to_implode );
languages/everest-forms.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Everest Forms package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Everest Forms 1.6.2\n"
6
  "Report-Msgid-Bugs-To: https://github.com/wpeverest/everest-forms/issues\n"
7
- "POT-Creation-Date: 2020-02-29 09:50:01+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the Everest Forms package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Everest Forms 1.6.3\n"
6
  "Report-Msgid-Bugs-To: https://github.com/wpeverest/everest-forms/issues\n"
7
+ "POT-Creation-Date: 2020-03-02 10:40:36+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
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.3
6
  Requires PHP: 5.4
7
- Stable tag: 1.6.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -149,6 +149,12 @@ Yes you can! Join in on our [GitHub repository](https://github.com/wpeverest/eve
149
 
150
  == Changelog ==
151
 
 
 
 
 
 
 
152
  = 1.6.2 - 29-02-2020 =
153
  * Fix - Cloning not working for some fields.
154
  * Fix - Error thrown for star rating field when using smart tags.
4
  Requires at least: 5.0
5
  Tested up to: 5.3
6
  Requires PHP: 5.4
7
+ Stable tag: 1.6.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
149
 
150
  == Changelog ==
151
 
152
+ = 1.6.3 - 02-03-2020 =
153
+ * Fix - Form not saved while using smart tag.
154
+ * Fix - Deactivation notice.
155
+ * Fix - Invalid argument in entries view.
156
+ * Fix - Import export file name.
157
+
158
  = 1.6.2 - 29-02-2020 =
159
  * Fix - Cloning not working for some fields.
160
  * Fix - Error thrown for star rating field when using smart tags.