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

Version Description

  • Fixed: Bug on email verification
Download this release

Release Info

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

Code changes from version 1.11.9 to 1.11.10

admin/controllers/FMControllerManage_fm.php CHANGED
@@ -346,8 +346,14 @@ function before_reset() {
346
  'post_type' => 'fmemailverification',
347
  );
348
 
349
- if(!$mail_verification_post_id || get_post( $mail_verification_post_id )===NULL)
350
- $mail_verification_post_id = wp_insert_post( $email_verification_post );
 
 
 
 
 
 
351
  }
352
  $paypal_mode = $paypal_mode == 'paypal' ? 1 : 0;
353
  $save = $wpdb->update($wpdb->prefix . 'formmaker', array(
346
  'post_type' => 'fmemailverification',
347
  );
348
 
349
+ if(!$mail_verification_post_id || get_post( $mail_verification_post_id )===NULL) {
350
+ $mail_verification_post_id = wp_insert_post($email_verification_post);
351
+ $wpdb->update($wpdb->prefix . "formmaker", array(
352
+ 'mail_verification_post_id' => $mail_verification_post_id,
353
+ ), array('id' => 1), array(
354
+ '%d',
355
+ ), array('%d'));
356
+ }
357
  }
358
  $paypal_mode = $paypal_mode == 'paypal' ? 1 : 0;
359
  $save = $wpdb->update($wpdb->prefix . 'formmaker', array(
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.11.9
7
  * Author: WebDorado Form Builder Team
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -11,7 +11,7 @@
11
  define('WD_FMC_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
12
  define('WD_FMC_URL', plugins_url(plugin_basename(dirname(__FILE__))));
13
  define('WD_FMC_MAIN_FILE', plugin_basename(__FILE__));
14
- define('WD_FMC_VERSION', '1.11.9');
15
  // Plugin menu.
16
  function form_maker_options_panel_fmc() {
17
  if (!get_option('form_maker_pro_active', FALSE)) {
@@ -211,7 +211,7 @@ add_shortcode('email_verification', 'fm_email_verification_shortcode_fmc');
211
  function fm_email_verification_shortcode_fmc() {
212
  require_once(WD_FMC_DIR . '/framework/WDW_FM_Library.php');
213
  require_once(WD_FMC_DIR . '/frontend/controllers/FMControllerVerify_email.php');
214
- $controller_class = 'FMControllerVerify_email';
215
  $controller = new $controller_class();
216
  $controller->execute();
217
  }
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.11.10
7
  * Author: WebDorado Form Builder Team
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
11
  define('WD_FMC_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
12
  define('WD_FMC_URL', plugins_url(plugin_basename(dirname(__FILE__))));
13
  define('WD_FMC_MAIN_FILE', plugin_basename(__FILE__));
14
+ define('WD_FMC_VERSION', '1.11.10');
15
  // Plugin menu.
16
  function form_maker_options_panel_fmc() {
17
  if (!get_option('form_maker_pro_active', FALSE)) {
211
  function fm_email_verification_shortcode_fmc() {
212
  require_once(WD_FMC_DIR . '/framework/WDW_FM_Library.php');
213
  require_once(WD_FMC_DIR . '/frontend/controllers/FMControllerVerify_email.php');
214
+ $controller_class = 'FMControllerVerify_email_fmc';
215
  $controller = new $controller_class();
216
  $controller->execute();
217
  }
frontend/models/FMModelForm_maker.php CHANGED
@@ -3159,6 +3159,21 @@ $defaultStyles .="
3159
  }
3160
  else {
3161
  $mail_verification_post_id = (int)$wpdb->get_var($wpdb->prepare('SELECT mail_verification_post_id FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"', $id));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3162
  $verification_link = get_post( $mail_verification_post_id );
3163
  foreach($send_tos as $index => $send_to) {
3164
  $recipient = isset($_POST['wdform_'.str_replace('*', '', $send_to)."_element".$id]) ? $_POST['wdform_'.str_replace('*', '', $send_to)."_element".$id] : NULL;
3159
  }
3160
  else {
3161
  $mail_verification_post_id = (int)$wpdb->get_var($wpdb->prepare('SELECT mail_verification_post_id FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"', $id));
3162
+ if(!$mail_verification_post_id || get_post( $mail_verification_post_id ) === NULL) {
3163
+ $email_verification_post = array(
3164
+ 'post_title' => 'Email Verification',
3165
+ 'post_content' => '[email_verification]',
3166
+ 'post_status' => 'publish',
3167
+ 'post_author' => 1,
3168
+ 'post_type' => 'fmemailverification',
3169
+ );
3170
+ $mail_verification_post_id = wp_insert_post($email_verification_post);
3171
+ $wpdb->update($wpdb->prefix . "formmaker", array(
3172
+ 'mail_verification_post_id' => $mail_verification_post_id,
3173
+ ), array('id' => 1), array(
3174
+ '%d',
3175
+ ), array('%d'));
3176
+ }
3177
  $verification_link = get_post( $mail_verification_post_id );
3178
  foreach($send_tos as $index => $send_to) {
3179
  $recipient = isset($_POST['wdform_'.str_replace('*', '', $send_to)."_element".$id]) ? $_POST['wdform_'.str_replace('*', '', $send_to)."_element".$id] : NULL;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.
4
  Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
5
  Requires at least: 3.4
6
  Tested up to: 4.8
7
- Stable tag: 1.11.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -158,8 +158,11 @@ If you want to update the plugin while preserving your existing contact forms, y
158
 
159
  == Changelog ==
160
 
 
 
 
161
  = 1.11.9 =
162
- * Fixed: Bug on limitations
163
 
164
  = 1.11.8 =
165
  * Added: Overview page
4
  Tags: contact, contact form, email, forms, contact forms, custom form, feedback, form builder, form manager, form maker, forms builder, form builder wordpress
5
  Requires at least: 3.4
6
  Tested up to: 4.8
7
+ Stable tag: 1.11.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
158
 
159
  == Changelog ==
160
 
161
+ = 1.11.10 =
162
+ * Fixed: Bug on email verification
163
+
164
  = 1.11.9 =
165
+ * Fixed: Bug on limitations
166
 
167
  = 1.11.8 =
168
  * Added: Overview page