Contact Form by WD – responsive drag & drop contact form builder tool - Version 1.13.1

Version Description

  • Fixed: Bug on checking if Address field is required.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Contact Form by WD – responsive drag & drop contact form builder tool
Version 1.13.1
Comparing to
See all releases

Code changes from version 1.13.0 to 1.13.1

contact-form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Contact Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
6
- * Version: 1.13.0
7
  * Author: WebDorado Form Builder Team
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -95,8 +95,8 @@ final class WDCFM {
95
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
96
  $this->front_urls = $this->get_front_urls();
97
  $this->main_file = plugin_basename(__FILE__);
98
- $this->plugin_version = '1.13.0';
99
- $this->db_version = '2.13.0';
100
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
101
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
102
  $this->menu_slug = 'manage' . $this->menu_postfix;
3
  * Plugin Name: Contact Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
6
+ * Version: 1.13.1
7
  * Author: WebDorado Form Builder Team
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
95
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
96
  $this->front_urls = $this->get_front_urls();
97
  $this->main_file = plugin_basename(__FILE__);
98
+ $this->plugin_version = '1.13.1';
99
+ $this->db_version = '2.13.1';
100
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
101
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
102
  $this->menu_slug = 'manage' . $this->menu_postfix;
frontend/models/form_maker.php CHANGED
@@ -1713,10 +1713,10 @@ class FMModelForm_maker_fmc {
1713
  }
1714
  case 'type_address': {
1715
  $value = '*#*#*#';
1716
- $element = isset( $_POST[ 'wdform_' . $i . "_street1" . $id ] ) ? trim( esc_html( $_POST[ 'wdform_' . $i . "_street1" . $id] ) ) : '';
1717
  if ( isset( $element ) ) {
1718
  $value = $element;
1719
- if ( $required && empty($value) ) {
1720
  $missing_required_field = TRUE;
1721
  }
1722
  break;
1713
  }
1714
  case 'type_address': {
1715
  $value = '*#*#*#';
1716
+ $element = isset( $_POST[ 'wdform_' . $i . "_street1" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_street1" . $id ] ) : NULL;
1717
  if ( isset( $element ) ) {
1718
  $value = $element;
1719
+ if ( $required && $value === '' ) {
1720
  $missing_required_field = TRUE;
1721
  }
1722
  break;
js/main_div_front_end.js CHANGED
@@ -1259,9 +1259,11 @@ function wd_is_filled(form_id, field_id, all_pages) {
1259
  var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
1260
  jQuery.each(element, function(i, elem){
1261
  if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
1262
- var element_value = jQuery(elem).val();
1263
- element_value = jQuery.trim(element_value);
1264
- if ( element_value == "" && typeof element_value != "undefined" ) {
 
 
1265
  not_filled[wdid] = elem;
1266
  }
1267
  }
1259
  var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
1260
  jQuery.each(element, function(i, elem){
1261
  if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
1262
+ var element_value = jQuery(elem).val();
1263
+ if (typeof element_value != "undefined") {
1264
+ element_value = jQuery.trim(element_value);
1265
+ }
1266
+ if ( element_value == "" ) {
1267
  not_filled[wdid] = elem;
1268
  }
1269
  }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: webdorado,10web
3
  Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
4
  Requires at least: 4.6
5
- Tested up to: 5.0
6
- Stable tag: 1.13.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -79,6 +79,9 @@ After downloading the ZIP file,
79
 
80
  == Changelog ==
81
 
 
 
 
82
  = 1.13.0 =
83
  * Added: Enable/Disable option for Form header.
84
  * Added: Tax option for Stripe payments.
2
  Contributors: webdorado,10web
3
  Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
4
  Requires at least: 4.6
5
+ Tested up to: 5.1
6
+ Stable tag: 1.13.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
79
 
80
  == Changelog ==
81
 
82
+ = 1.13.1 =
83
+ * Fixed: Bug on checking if Address field is required.
84
+
85
  = 1.13.0 =
86
  * Added: Enable/Disable option for Form header.
87
  * Added: Tax option for Stripe payments.