Formidable Forms – Form Builder for WordPress - Version 2.0.07

Version Description

  • Don't escape urls in ajax
  • Correctly save all the options on the form settings page
Download this release

Release Info

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

Code changes from version 2.0.06 to 2.0.07

classes/controllers/FrmAppController.php CHANGED
@@ -414,7 +414,7 @@ class FrmAppController {
414
 
415
  //disable the plugin and redirect after uninstall so the tables don't get added right back
416
  deactivate_plugins( FrmAppHelper::plugin_folder() . '/formidable.php', false, false );
417
- echo esc_url( admin_url( 'plugins.php?deactivate=true' ) );
418
  } else {
419
  $frm_settings = FrmAppHelper::get_settings();
420
  wp_die( $frm_settings->admin_permission );
414
 
415
  //disable the plugin and redirect after uninstall so the tables don't get added right back
416
  deactivate_plugins( FrmAppHelper::plugin_folder() . '/formidable.php', false, false );
417
+ echo admin_url( 'plugins.php?deactivate=true' );
418
  } else {
419
  $frm_settings = FrmAppHelper::get_settings();
420
  wp_die( $frm_settings->admin_permission );
classes/helpers/FrmAppHelper.php CHANGED
@@ -10,7 +10,7 @@ class FrmAppHelper {
10
  /**
11
  * @since 2.0
12
  */
13
- public static $plug_version = '2.0.06';
14
 
15
  /**
16
  * @since 1.07.02
10
  /**
11
  * @since 2.0
12
  */
13
+ public static $plug_version = '2.0.07';
14
 
15
  /**
16
  * @since 1.07.02
classes/helpers/FrmFormsHelper.php CHANGED
@@ -229,9 +229,10 @@ class FrmFormsHelper {
229
 
230
  /**
231
  * @param array $options
 
232
  * @since 2.0.6
233
  */
234
- public static function fill_form_options( &$options ) {
235
  $defaults = self::get_default_opts();
236
  foreach ( $defaults as $var => $default ) {
237
  $options[ $var ] = isset( $values['options'][ $var ] ) ? $values['options'][ $var ] : $default;
229
 
230
  /**
231
  * @param array $options
232
+ * @param array $values
233
  * @since 2.0.6
234
  */
235
+ public static function fill_form_options( &$options, $values ) {
236
  $defaults = self::get_default_opts();
237
  foreach ( $defaults as $var => $default ) {
238
  $options[ $var ] = isset( $values['options'][ $var ] ) ? $values['options'][ $var ] : $default;
classes/models/FrmForm.php CHANGED
@@ -25,7 +25,7 @@ class FrmForm {
25
  );
26
 
27
  $options = array();
28
- FrmFormsHelper::fill_form_options( $options );
29
 
30
  $options['before_html'] = isset($values['options']['before_html']) ? $values['options']['before_html'] : FrmFormsHelper::get_default_html('before');
31
  $options['after_html'] = isset($values['options']['after_html']) ? $values['options']['after_html'] : FrmFormsHelper::get_default_html('after');
@@ -172,7 +172,7 @@ class FrmForm {
172
  }
173
 
174
  $options = array();
175
- FrmFormsHelper::fill_form_options( $options );
176
 
177
  $options['custom_style'] = isset($values['options']['custom_style']) ? $values['options']['custom_style'] : 0;
178
  $options['before_html'] = isset($values['options']['before_html']) ? $values['options']['before_html'] : FrmFormsHelper::get_default_html('before');
25
  );
26
 
27
  $options = array();
28
+ FrmFormsHelper::fill_form_options( $options, $values );
29
 
30
  $options['before_html'] = isset($values['options']['before_html']) ? $values['options']['before_html'] : FrmFormsHelper::get_default_html('before');
31
  $options['after_html'] = isset($values['options']['after_html']) ? $values['options']['after_html'] : FrmFormsHelper::get_default_html('after');
172
  }
173
 
174
  $options = array();
175
+ FrmFormsHelper::fill_form_options( $options, $values );
176
 
177
  $options['custom_style'] = isset($values['options']['custom_style']) ? $values['options']['custom_style'] : 0;
178
  $options['before_html'] = isset($values['options']['before_html']) ? $values['options']['before_html'] : FrmFormsHelper::get_default_html('before');
classes/models/FrmFormAction.php CHANGED
@@ -372,7 +372,7 @@ class FrmFormAction {
372
  $query['menu_order'] = $this->form_id;
373
  }
374
 
375
- $actions = FrmAppHelper::check_cache( serialize( $query ), 'frm_actions', $query, 'get_posts' );
376
  unset($query);
377
 
378
  remove_filter( 'posts_where' , 'FrmFormActionsController::limit_by_type' );
372
  $query['menu_order'] = $this->form_id;
373
  }
374
 
375
+ $actions = FrmAppHelper::check_cache( serialize( $query ) . '_type_' . $type, 'frm_actions', $query, 'get_posts' );
376
  unset($query);
377
 
378
  remove_filter( 'posts_where' , 'FrmFormActionsController::limit_by_type' );
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.06
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.07
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.2
7
- Stable tag: 2.0.06
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,10 @@ 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.06 =
93
  * Fix an XSS vulnerability in the lite version. When the pro version is active, the vulnerability was resolved.
94
  * Increased security
@@ -97,7 +101,7 @@ A. Try clearing your browser cache. As plugin modifications are made, frequent j
97
  * Prevent javascript error on form settings page when WooThemes Helper plugin is active
98
  * Prevent conflict from unknown plugin/theme that was modifying the post excerpt in form actions, which prevented them from showing
99
  * Only scroll to the errored field and success message if they are not already in view
100
- * Make sure admins always have permission to view menus
101
  * Pro: Fix datepicker field when the jQuery CSS is set to load on all pages
102
  * Pro: Added frm_footer_scripts hook
103
  * Pro: Don't autoselect 0 in scale fields
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.2
7
+ Stable tag: 2.0.07
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.07 =
93
+ * Don't escape urls in ajax
94
+ * Correctly save all the options on the form settings page
95
+
96
  = 2.0.06 =
97
  * Fix an XSS vulnerability in the lite version. When the pro version is active, the vulnerability was resolved.
98
  * Increased security
101
  * Prevent javascript error on form settings page when WooThemes Helper plugin is active
102
  * Prevent conflict from unknown plugin/theme that was modifying the post excerpt in form actions, which prevented them from showing
103
  * Only scroll to the errored field and success message if they are not already in view
104
+ * Make sure admins always have permission to view menus
105
  * Pro: Fix datepicker field when the jQuery CSS is set to load on all pages
106
  * Pro: Added frm_footer_scripts hook
107
  * Pro: Don't autoselect 0 in scale fields