Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.13.14

Version Description

  • Fixed: Action after submission for cached pages.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.13.14
Comparing to
See all releases

Code changes from version 1.13.13 to 1.13.14

Files changed (3) hide show
  1. form-maker.php +3 -3
  2. frontend/models/form_maker.php +11 -4
  3. readme.txt +3 -6
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.13.13
7
  * Author: 10Web Form Builder Team
8
  * Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -97,8 +97,8 @@ final class WDFM {
97
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
98
  $this->front_urls = $this->get_front_urls();
99
  $this->main_file = plugin_basename(__FILE__);
100
- $this->plugin_version = '1.13.13';
101
- $this->db_version = '2.13.13';
102
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
103
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
104
  $this->menu_slug = 'manage' . $this->menu_postfix;
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.13.14
7
  * Author: 10Web Form Builder Team
8
  * Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
97
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
98
  $this->front_urls = $this->get_front_urls();
99
  $this->main_file = plugin_basename(__FILE__);
100
+ $this->plugin_version = '1.13.14';
101
+ $this->db_version = '2.13.14';
102
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
103
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
104
  $this->menu_slug = 'manage' . $this->menu_postfix;
frontend/models/form_maker.php CHANGED
@@ -1203,7 +1203,9 @@ class FMModelForm_maker {
1203
  $blocked_ip = $wpdb->get_var( $wpdb->prepare( 'SELECT * FROM ' . $wpdb->prefix . 'formmaker_blocked WHERE ip="%s"', $ip ) );
1204
  if ( $blocked_ip ) {
1205
  $_SESSION[ 'massage_after_submit' . $id ] = addslashes( __( 'Your ip is blacklisted. Please contact the website administrator.', WDFMInstance(self::PLUGIN)->prefix ) );
1206
- wp_redirect( $_SERVER["REQUEST_URI"] ); //to be checked
 
 
1207
  exit;
1208
  }
1209
  if ( isset( $_POST[ "save_or_submit" . $id ] ) && $_POST[ "save_or_submit" . $id ] == 'save' ) {
@@ -1354,7 +1356,7 @@ class FMModelForm_maker {
1354
  $chgnac = TRUE;
1355
  $paypal = array();
1356
  $all_files = array();
1357
- $frontend_parmas = array();
1358
  $paypal['item_name'] = array();
1359
  $paypal['quantity'] = array();
1360
  $paypal['amount'] = array();
@@ -2394,7 +2396,9 @@ class FMModelForm_maker {
2394
  }
2395
  $_SESSION[ 'error_or_no' . $id ] = 1;
2396
  $_SESSION[ 'form_submit_type' . $id ] = $form->submit_text_type . ',' . $form->id . ',' . $group_id;
2397
- wp_redirect( $_SERVER[ "REQUEST_URI" ] );
 
 
2398
  exit;
2399
  }
2400
 
@@ -3512,13 +3516,16 @@ class FMModelForm_maker {
3512
  }
3513
  }
3514
 
 
 
 
3515
  if ( !$str ) {
3516
  wp_redirect( html_entity_decode( $redirect_url ) );
3517
  exit;
3518
  }
3519
  else {
3520
  $_SESSION[ 'redirect_paypal' . $id ] = 1;
3521
- $str .= "&return=" . urlencode( add_query_arg( array( 'succes' => time() ), $redirect_url ) );
3522
  wp_redirect( $str );
3523
  exit;
3524
  }
1203
  $blocked_ip = $wpdb->get_var( $wpdb->prepare( 'SELECT * FROM ' . $wpdb->prefix . 'formmaker_blocked WHERE ip="%s"', $ip ) );
1204
  if ( $blocked_ip ) {
1205
  $_SESSION[ 'massage_after_submit' . $id ] = addslashes( __( 'Your ip is blacklisted. Please contact the website administrator.', WDFMInstance(self::PLUGIN)->prefix ) );
1206
+ // Add query arg to url to display message on cached pages.
1207
+ $redirect_url = add_query_arg( array( 'succes' => time() ), $_SERVER["REQUEST_URI"] );
1208
+ wp_redirect( $redirect_url ); //to be checked
1209
  exit;
1210
  }
1211
  if ( isset( $_POST[ "save_or_submit" . $id ] ) && $_POST[ "save_or_submit" . $id ] == 'save' ) {
1356
  $chgnac = TRUE;
1357
  $paypal = array();
1358
  $all_files = array();
1359
+ $frontend_parmas = array();
1360
  $paypal['item_name'] = array();
1361
  $paypal['quantity'] = array();
1362
  $paypal['amount'] = array();
2396
  }
2397
  $_SESSION[ 'error_or_no' . $id ] = 1;
2398
  $_SESSION[ 'form_submit_type' . $id ] = $form->submit_text_type . ',' . $form->id . ',' . $group_id;
2399
+ // Add query arg to url to display message on cached pages.
2400
+ $redirect_url = add_query_arg( array( 'succes' => time() ), $_SERVER[ "REQUEST_URI" ] );
2401
+ wp_redirect( $redirect_url );
2402
  exit;
2403
  }
2404
 
3516
  }
3517
  }
3518
 
3519
+ // Add query arg to url to display message on cached pages.
3520
+ $redirect_url = add_query_arg( array( 'succes' => time() ), $redirect_url );
3521
+
3522
  if ( !$str ) {
3523
  wp_redirect( html_entity_decode( $redirect_url ) );
3524
  exit;
3525
  }
3526
  else {
3527
  $_SESSION[ 'redirect_paypal' . $id ] = 1;
3528
+ $str .= "&return=" . urlencode( $redirect_url );
3529
  wp_redirect( $str );
3530
  exit;
3531
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,10web,wdsupport,formmakersupport
3
  Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
4
  Requires at least: 4.6
5
  Tested up to: 5.2
6
- Stable tag: 1.13.13
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -562,8 +562,8 @@ Where **{{field_id}}** is the ID of the field you wish to prefill. Also, **{{par
562
 
563
  == Changelog ==
564
 
565
- = 1.13.13 =
566
- * Removed: Banner to check website performance.
567
 
568
  = 1.13.12 =
569
  * Added: "Get Free Ebook" page on activation.
@@ -573,9 +573,6 @@ Where **{{field_id}}** is the ID of the field you wish to prefill. Also, **{{par
573
  * Fixed: Pagination.
574
  * Changed: Banner text.
575
 
576
- = 1.13.11 =
577
- * Added: Banner to check website performance.
578
-
579
  = 1.13.10 =
580
  * Fixed: Page title in progress bar.
581
  * Fixed: Option for selecting posts/pages to display Popup, Topbar, and Scrollbox forms.
3
  Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
4
  Requires at least: 4.6
5
  Tested up to: 5.2
6
+ Stable tag: 1.13.14
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
562
 
563
  == Changelog ==
564
 
565
+ = 1.13.14 =
566
+ * Fixed: Action after submission for cached pages.
567
 
568
  = 1.13.12 =
569
  * Added: "Get Free Ebook" page on activation.
573
  * Fixed: Pagination.
574
  * Changed: Banner text.
575
 
 
 
 
576
  = 1.13.10 =
577
  * Fixed: Page title in progress bar.
578
  * Fixed: Option for selecting posts/pages to display Popup, Topbar, and Scrollbox forms.