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

Version Description

  • Fixed: Uploaded file url in email.
Download this release

Release Info

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

Code changes from version 1.13.25 to 1.13.26

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.25
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
@@ -98,8 +98,8 @@ final class WDFM {
98
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
99
  $this->front_urls = $this->get_front_urls();
100
  $this->main_file = plugin_basename(__FILE__);
101
- $this->plugin_version = '1.13.25';
102
- $this->db_version = '2.13.24';
103
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
104
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
105
  $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.26
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
98
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
99
  $this->front_urls = $this->get_front_urls();
100
  $this->main_file = plugin_basename(__FILE__);
101
+ $this->plugin_version = '1.13.26';
102
+ $this->db_version = '2.13.26';
103
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
104
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
105
  $this->menu_slug = 'manage' . $this->menu_postfix;
framework/WDW_FM_Library.php CHANGED
@@ -910,7 +910,6 @@ class WDW_FM_Library {
910
  if ( isset($row->css) ) {
911
  $options = json_decode($row->css);
912
  if ( !empty($options) ) {
913
-
914
  foreach ( $options as $option ) {
915
  $is_google_fonts = in_array((string) $option, $google_fonts) ? TRUE : FALSE;
916
  if ( TRUE == $is_google_fonts ) {
@@ -4960,7 +4959,7 @@ class WDW_FM_Library {
4960
  if ( !empty( $attachment ) ) {
4961
  foreach ( $attachment as $att ) {
4962
  if( $save_uploads ) {
4963
- $temp[] = ABSPATH . $att;
4964
  } else {
4965
  $temp[] = $att;
4966
  }
910
  if ( isset($row->css) ) {
911
  $options = json_decode($row->css);
912
  if ( !empty($options) ) {
 
913
  foreach ( $options as $option ) {
914
  $is_google_fonts = in_array((string) $option, $google_fonts) ? TRUE : FALSE;
915
  if ( TRUE == $is_google_fonts ) {
4959
  if ( !empty( $attachment ) ) {
4960
  foreach ( $attachment as $att ) {
4961
  if( $save_uploads ) {
4962
+ $temp[] = ABSPATH . str_replace( array(home_url() . '/', site_url() .'/' ), array('', ''), $att );
4963
  } else {
4964
  $temp[] = $att;
4965
  }
frontend/models/form_maker.php CHANGED
@@ -3170,7 +3170,7 @@ class FMModelForm_maker {
3170
  $rows_count = sizeof( $mat_rows ) - 1;
3171
  $mat_columns = explode( "***", isset( $_POST[ 'wdform_' . $i . "_hidden_column" . $id ] ) ? $_POST[ 'wdform_' . $i . "_hidden_column" . $id ] : "" );
3172
  $columns_count = sizeof( $mat_columns ) - 1;
3173
- $matrix = '<table cellpadding="3" cellspacing="0" style="width: 600px; border-bottom: 1px solid #CCC; border-right: 1px solid #CCC;">';
3174
  $matrix .= '<tr><td ' . $td_style . '></td>';
3175
  for ( $k = 1; $k < count( $mat_columns ); $k++ ) {
3176
  $matrix .= '<td style="border-top: 1px solid #CCC; border-left: 1px solid #CCC; padding: 10px; color: #3D3D3D; background-color: #EEEEEE; padding: 5px; ">' . $mat_columns[ $k ] . '</td>';
@@ -3259,7 +3259,7 @@ class FMModelForm_maker {
3259
  }
3260
  $file_name = $all_files[$k]['tmp_name'];
3261
  if ( $row->save_uploads == 1 ) {
3262
- $basedir = str_replace( site_url() .'/', '', $upload_dir['baseurl'] );
3263
  $file = $basedir . $file_name;
3264
  } else {
3265
  $file = $file_name;
@@ -3412,7 +3412,7 @@ class FMModelForm_maker {
3412
  }
3413
  $file_name = $all_files[$k]['tmp_name'];
3414
  if( $save_uploads == 1 ) {
3415
- $basedir = str_replace(site_url() . '/', '', $upload_dir['baseurl']);
3416
  $file = $basedir . $file_name;
3417
  } else {
3418
  $file = $file_name;
@@ -3647,7 +3647,7 @@ class FMModelForm_maker {
3647
  $file_name = explode( '/', $attach );
3648
  $file_name = end( $file_name );
3649
  if ( $file_upload_link == 1 ) {
3650
- $new_value .= '<a href="' . site_url() . '/' . $attach . '">' . $file_name . '</a><br />';
3651
  } else {
3652
  $invalidFileExts = array(
3653
  'gif',
@@ -3674,7 +3674,7 @@ class FMModelForm_maker {
3674
  }
3675
  }
3676
  if ( $extOk == TRUE ) {
3677
- $new_value .= '<img src="' . site_url() . '/' . $attach . '" alt="' . $file_name . '"/>';
3678
  }
3679
  }
3680
  }
3170
  $rows_count = sizeof( $mat_rows ) - 1;
3171
  $mat_columns = explode( "***", isset( $_POST[ 'wdform_' . $i . "_hidden_column" . $id ] ) ? $_POST[ 'wdform_' . $i . "_hidden_column" . $id ] : "" );
3172
  $columns_count = sizeof( $mat_columns ) - 1;
3173
+ $matrix = '<table cellpadding="3" cellspacing="0" style="width: 100%; border-bottom: 1px solid #CCC; border-right: 1px solid #CCC;">';
3174
  $matrix .= '<tr><td ' . $td_style . '></td>';
3175
  for ( $k = 1; $k < count( $mat_columns ); $k++ ) {
3176
  $matrix .= '<td style="border-top: 1px solid #CCC; border-left: 1px solid #CCC; padding: 10px; color: #3D3D3D; background-color: #EEEEEE; padding: 5px; ">' . $mat_columns[ $k ] . '</td>';
3259
  }
3260
  $file_name = $all_files[$k]['tmp_name'];
3261
  if ( $row->save_uploads == 1 ) {
3262
+ $basedir = str_replace( site_url() . '/', home_url() . '/', $upload_dir['baseurl'] );
3263
  $file = $basedir . $file_name;
3264
  } else {
3265
  $file = $file_name;
3412
  }
3413
  $file_name = $all_files[$k]['tmp_name'];
3414
  if( $save_uploads == 1 ) {
3415
+ $basedir = str_replace( site_url() . '/', home_url() . '/', $upload_dir['baseurl'] );
3416
  $file = $basedir . $file_name;
3417
  } else {
3418
  $file = $file_name;
3647
  $file_name = explode( '/', $attach );
3648
  $file_name = end( $file_name );
3649
  if ( $file_upload_link == 1 ) {
3650
+ $new_value .= '<a href="' . $attach . '">' . $file_name . '</a><br />';
3651
  } else {
3652
  $invalidFileExts = array(
3653
  'gif',
3674
  }
3675
  }
3676
  if ( $extOk == TRUE ) {
3677
+ $new_value .= '<img src="' . $attach . '" alt="' . $file_name . '"/>';
3678
  }
3679
  }
3680
  }
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.3
6
- Stable tag: 1.13.25
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -562,6 +562,9 @@ Where **{{field_id}}** is the ID of the field you wish to prefill. Also, **{{par
562
 
563
  == Changelog ==
564
 
 
 
 
565
  = 1.13.25 =
566
  * Fixed: Issue with saving a form with non Unicode characters.
567
 
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.3
6
+ Stable tag: 1.13.26
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.26 =
566
+ * Fixed: Uploaded file url in email.
567
+
568
  = 1.13.25 =
569
  * Fixed: Issue with saving a form with non Unicode characters.
570