Formidable Forms – Form Builder for WordPress - Version 2.0.17

Version Description

  • Allow add-ons to work with PHP 5.2
  • Pro Features:
  • Fix issue with an extra posts being created when an entry is saved
Download this release

Release Info

Developer sswells
Plugin Icon 128x128 Formidable Forms – Form Builder for WordPress
Version 2.0.17
Comparing to
See all releases

Code changes from version 2.0.16 to 2.0.17

classes/helpers/FrmAppHelper.php CHANGED
@@ -10,7 +10,7 @@ class FrmAppHelper {
10
  /**
11
  * @since 2.0
12
  */
13
- public static $plug_version = '2.0.16';
14
 
15
  /**
16
  * @since 1.07.02
10
  /**
11
  * @since 2.0
12
  */
13
+ public static $plug_version = '2.0.17';
14
 
15
  /**
16
  * @since 1.07.02
classes/models/FrmAddon.php CHANGED
@@ -28,7 +28,7 @@ class FrmAddon {
28
 
29
  public static function load_hooks() {
30
  add_filter( 'frm_include_addon_page', '__return_true' );
31
- new static();
32
  }
33
 
34
  public function insert_installed_addon( $plugins ) {
28
 
29
  public static function load_hooks() {
30
  add_filter( 'frm_include_addon_page', '__return_true' );
31
+ //new static();
32
  }
33
 
34
  public function insert_installed_addon( $plugins ) {
classes/models/FrmEntry.php CHANGED
@@ -771,14 +771,20 @@ class FrmEntry {
771
  'is_draft' => self::get_is_draft_value( $values ),
772
  'updated_at' => current_time('mysql', 1),
773
  'updated_by' => isset($values['updated_by']) ? $values['updated_by'] : get_current_user_id(),
774
- 'post_id' => self::get_post_id( $values ),
775
- 'parent_item_id' => self::get_parent_item_id( $values ),
776
  );
777
 
 
 
 
 
778
  if ( isset($values['item_key']) ) {
779
  $new_values['item_key'] = FrmAppHelper::get_unique_key($values['item_key'], $wpdb->prefix .'frm_items', 'item_key', $id);
780
  }
781
 
 
 
 
 
782
  if ( isset($values['frm_user_id']) && is_numeric($values['frm_user_id']) ) {
783
  $new_values['user_id'] = $values['frm_user_id'];
784
  }
771
  'is_draft' => self::get_is_draft_value( $values ),
772
  'updated_at' => current_time('mysql', 1),
773
  'updated_by' => isset($values['updated_by']) ? $values['updated_by'] : get_current_user_id(),
 
 
774
  );
775
 
776
+ if ( isset($values['post_id']) ) {
777
+ $new_values['post_id'] = (int) $values['post_id'];
778
+ }
779
+
780
  if ( isset($values['item_key']) ) {
781
  $new_values['item_key'] = FrmAppHelper::get_unique_key($values['item_key'], $wpdb->prefix .'frm_items', 'item_key', $id);
782
  }
783
 
784
+ if ( isset($values['parent_item_id']) ) {
785
+ $new_values['parent_item_id'] = (int) $values['parent_item_id'];
786
+ }
787
+
788
  if ( isset($values['frm_user_id']) && is_numeric($values['frm_user_id']) ) {
789
  $new_values['user_id'] = $values['frm_user_id'];
790
  }
formidable.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Formidable
4
  Description: Quickly and easily create drag-and-drop forms
5
- Version: 2.0.16
6
  Plugin URI: http://formidablepro.com/
7
  Author URI: http://strategy11.com
8
  Author: Strategy11
2
  /*
3
  Plugin Name: Formidable
4
  Description: Quickly and easily create drag-and-drop forms
5
+ Version: 2.0.17
6
  Plugin URI: http://formidablepro.com/
7
  Author URI: http://strategy11.com
8
  Author: Strategy11
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://formidablepro.com/donate
4
  Tags: admin, AJAX, captcha, contact, contact form, database, email, feedback, form, forms, javascript, jquery, page, plugin, poll, Post, spam, survey, template, widget, wpmu, form builder
5
  Requires at least: 3.6
6
  Tested up to: 4.3.1
7
- Stable tag: 2.0.16
8
 
9
  Beautiful forms in 60 seconds. The WordPress form builder that enables you to create forms with a simple drag-and-drop interface and in-place editing.
10
 
@@ -89,6 +89,11 @@ A. Try clearing your browser cache. As plugin modifications are made, frequent j
89
  [See more FAQs](http://formidablepro.com/formidable-faqs/ "Formidable Form FAQs")
90
 
91
  == Changelog ==
 
 
 
 
 
92
  = 2.0.16 =
93
  * Escape font family correctly for quotation marks
94
  * Only check for updates every 24 hours
4
  Tags: admin, AJAX, captcha, contact, contact form, database, email, feedback, form, forms, javascript, jquery, page, plugin, poll, Post, spam, survey, template, widget, wpmu, form builder
5
  Requires at least: 3.6
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.0.17
8
 
9
  Beautiful forms in 60 seconds. The WordPress form builder that enables you to create forms with a simple drag-and-drop interface and in-place editing.
10
 
89
  [See more FAQs](http://formidablepro.com/formidable-faqs/ "Formidable Form FAQs")
90
 
91
  == Changelog ==
92
+ = 2.0.17 =
93
+ * Allow add-ons to work with PHP 5.2
94
+ * **Pro Features:**
95
+ * Fix issue with an extra posts being created when an entry is saved
96
+
97
  = 2.0.16 =
98
  * Escape font family correctly for quotation marks
99
  * Only check for updates every 24 hours