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

Version Description

  • Fixed: bug in new form
Download this release

Release Info

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

Code changes from version 1.8.29 to 1.8.30

admin/controllers/FMControllerManage_fmc.php CHANGED
@@ -678,6 +678,7 @@ function before_reset() {
678
  '%d'
679
  ));
680
  $id = (int)$wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
 
681
  $wpdb->insert($wpdb->prefix . 'formmaker_views', array(
682
  'form_id' => $id,
683
  'views' => 0
@@ -876,6 +877,7 @@ function before_reset() {
876
  '%d',
877
  ));
878
  $id = (int)$wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
 
879
  // $_POST['current_id'] = $id;
880
  $wpdb->insert($wpdb->prefix . 'formmaker_views', array(
881
  'form_id' => $id,
@@ -1197,6 +1199,7 @@ function before_reset() {
1197
  '%d',
1198
  ));
1199
  $new_id = (int)$wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
 
1200
  $wpdb->insert($wpdb->prefix . 'formmaker_views', array(
1201
  'form_id' => $new_id,
1202
  'views' => 0
@@ -1217,6 +1220,10 @@ function before_reset() {
1217
  global $wpdb;
1218
  $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"', $id);
1219
  if ($wpdb->query($query)) {
 
 
 
 
1220
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker_views WHERE form_id="%d"', $id));
1221
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker_submits WHERE form_id="%d"', $id));
1222
 
@@ -1239,6 +1246,10 @@ function before_reset() {
1239
  if (isset($_POST['check_' . $form_id])) {
1240
  $flag = TRUE;
1241
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"', $form_id));
 
 
 
 
1242
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker_views WHERE form_id="%d"', $form_id));
1243
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker_submits WHERE form_id="%d"', $form_id));
1244
  }
678
  '%d'
679
  ));
680
  $id = (int)$wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
681
+ update_option('contact_form_forms', ((get_option('contact_form_forms')) ? (get_option('contact_form_forms')) . ',' . $id : $id));
682
  $wpdb->insert($wpdb->prefix . 'formmaker_views', array(
683
  'form_id' => $id,
684
  'views' => 0
877
  '%d',
878
  ));
879
  $id = (int)$wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
880
+ update_option('contact_form_forms', ((get_option('contact_form_forms')) ? (get_option('contact_form_forms')) . ',' . $id : $id));
881
  // $_POST['current_id'] = $id;
882
  $wpdb->insert($wpdb->prefix . 'formmaker_views', array(
883
  'form_id' => $id,
1199
  '%d',
1200
  ));
1201
  $new_id = (int)$wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
1202
+ update_option('contact_form_forms', ((get_option('contact_form_forms')) ? (get_option('contact_form_forms')) . ',' . $id : $id));
1203
  $wpdb->insert($wpdb->prefix . 'formmaker_views', array(
1204
  'form_id' => $new_id,
1205
  'views' => 0
1220
  global $wpdb;
1221
  $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"', $id);
1222
  if ($wpdb->query($query)) {
1223
+ $arr = explode(',', get_option('contact_form_forms'));
1224
+ $arr = array_diff($arr, array($id));
1225
+ $arr = implode(',', $arr);
1226
+ update_option('contact_form_forms', $arr);
1227
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker_views WHERE form_id="%d"', $id));
1228
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker_submits WHERE form_id="%d"', $id));
1229
 
1246
  if (isset($_POST['check_' . $form_id])) {
1247
  $flag = TRUE;
1248
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"', $form_id));
1249
+ $arr = explode(',', get_option('contact_form_forms'));
1250
+ $arr = array_diff($arr, array($form_id));
1251
+ $arr = implode(',', $arr);
1252
+ update_option('contact_form_forms', $arr);
1253
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker_views WHERE form_id="%d"', $form_id));
1254
  $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'formmaker_submits WHERE form_id="%d"', $form_id));
1255
  }
contact-form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Contact Form Maker
4
  * Plugin URI: http://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.8.29
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -248,7 +248,7 @@ function register_fmcemailverification_cpt(){
248
  // Activate plugin.
249
  function form_maker_activate_cfm() {
250
  $version = get_option("wd_form_maker_version");
251
- $new_version = '1.8.29';
252
  global $wpdb;
253
  if (!$version) {
254
  add_option("wd_form_maker_version", $new_version, '', 'no');
3
  * Plugin Name: Contact Form Maker
4
  * Plugin URI: http://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.8.30
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
248
  // Activate plugin.
249
  function form_maker_activate_cfm() {
250
  $version = get_option("wd_form_maker_version");
251
+ $new_version = '1.8.30';
252
  global $wpdb;
253
  if (!$version) {
254
  add_option("wd_form_maker_version", $new_version, '', 'no');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.
4
  Tags: form, forms, contact form, contact forms, contact form plugin, contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form, Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms, contact us, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, survey form, contact form with captcha, recaptcha
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
- Stable tag: 1.8.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -145,6 +145,8 @@ If you want to update the plugin while preserving your existing contact forms, y
145
  8. Contact Form Maker - Select Columns
146
 
147
  == Changelog ==
 
 
148
  = 1.8.29 =
149
  * Fixed: bug in widget
150
  = 1.8.28 =
4
  Tags: form, forms, contact form, contact forms, contact form plugin, contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form, Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms, contact us, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, survey form, contact form with captcha, recaptcha
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
+ Stable tag: 1.8.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
145
  8. Contact Form Maker - Select Columns
146
 
147
  == Changelog ==
148
+ = 1.8.30 =
149
+ * Fixed: bug in new form
150
  = 1.8.29 =
151
  * Fixed: bug in widget
152
  = 1.8.28 =