Formidable Forms – Form Builder for WordPress - Version 5.2.02.01

Version Description

  • Fix: Fixed a conflict with Duplicator Pro that was causing dropdowns to break after updating to Bootstrap 4.
  • Fix: Bottom margins were removed from credit card and address fields with last release and have been added back.
  • Fix: Imported templates with multiple forms were getting imported with the wrong name.
  • Fix: Clicking to install a quiz template was copying the NEW html into the form name input.
Download this release

Release Info

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

Code changes from version 5.2.02 to 5.2.02.01

classes/controllers/FrmAppController.php CHANGED
@@ -459,9 +459,9 @@ class FrmAppController {
459
  $dependecies[] = 'wp-color-picker';
460
  }
461
 
 
462
  wp_register_script( 'formidable_admin', FrmAppHelper::plugin_url() . '/js/formidable_admin.js', $dependecies, $version, true );
463
  wp_register_style( 'formidable-admin', FrmAppHelper::plugin_url() . '/css/frm_admin.css', array(), $version );
464
- wp_register_script( 'popper', FrmAppHelper::plugin_url() . '/js/popper.min.js', array( 'jquery' ), '1.16.0', true );
465
  wp_register_script( 'bootstrap_tooltip', FrmAppHelper::plugin_url() . '/js/bootstrap.min.js', array( 'jquery', 'popper' ), '4.6.1', true );
466
  wp_register_style( 'formidable-grids', FrmAppHelper::plugin_url() . '/css/frm_grids.css', array(), $version );
467
 
@@ -484,6 +484,7 @@ class FrmAppController {
484
 
485
  wp_enqueue_script( 'admin-widgets' );
486
  wp_enqueue_style( 'widgets' );
 
487
  wp_enqueue_script( 'formidable_admin' );
488
  FrmAppHelper::localize_script( 'admin' );
489
 
@@ -519,6 +520,7 @@ class FrmAppController {
519
  if ( $post_type === 'frm_display' ) {
520
  wp_enqueue_style( 'formidable-grids' );
521
  wp_enqueue_script( 'jquery-ui-draggable' );
 
522
  wp_enqueue_script( 'formidable_admin' );
523
  wp_enqueue_style( 'formidable-admin' );
524
  FrmAppHelper::localize_script( 'admin' );
@@ -529,6 +531,38 @@ class FrmAppController {
529
  self::maybe_force_formidable_block_on_gutenberg_page();
530
  }
531
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
532
  /**
533
  * Automatically insert a Formidable block when loading Gutenberg with a $_GET['frmForm'] value set.
534
  *
459
  $dependecies[] = 'wp-color-picker';
460
  }
461
 
462
+ self::register_popper1();
463
  wp_register_script( 'formidable_admin', FrmAppHelper::plugin_url() . '/js/formidable_admin.js', $dependecies, $version, true );
464
  wp_register_style( 'formidable-admin', FrmAppHelper::plugin_url() . '/css/frm_admin.css', array(), $version );
 
465
  wp_register_script( 'bootstrap_tooltip', FrmAppHelper::plugin_url() . '/js/bootstrap.min.js', array( 'jquery', 'popper' ), '4.6.1', true );
466
  wp_register_style( 'formidable-grids', FrmAppHelper::plugin_url() . '/css/frm_grids.css', array(), $version );
467
 
484
 
485
  wp_enqueue_script( 'admin-widgets' );
486
  wp_enqueue_style( 'widgets' );
487
+ self::maybe_deregister_popper2();
488
  wp_enqueue_script( 'formidable_admin' );
489
  FrmAppHelper::localize_script( 'admin' );
490
 
520
  if ( $post_type === 'frm_display' ) {
521
  wp_enqueue_style( 'formidable-grids' );
522
  wp_enqueue_script( 'jquery-ui-draggable' );
523
+ self::maybe_deregister_popper2();
524
  wp_enqueue_script( 'formidable_admin' );
525
  wp_enqueue_style( 'formidable-admin' );
526
  FrmAppHelper::localize_script( 'admin' );
531
  self::maybe_force_formidable_block_on_gutenberg_page();
532
  }
533
 
534
+ /**
535
+ * Fix a Duplicator Pro conflict because it uses Popper 2. See issue #3459.
536
+ *
537
+ * @since 5.2.02.01
538
+ *
539
+ * @return void
540
+ */
541
+ private static function maybe_deregister_popper2() {
542
+ global $wp_scripts;
543
+
544
+ if ( ! array_key_exists( 'popper', $wp_scripts->registered ) ) {
545
+ return;
546
+ }
547
+
548
+ $popper = $wp_scripts->registered['popper'];
549
+ if ( version_compare( $popper->ver, '2.0', '>=' ) ) {
550
+ wp_deregister_script( 'popper' );
551
+ self::register_popper1();
552
+ }
553
+ }
554
+
555
+ /**
556
+ * Register Popper required for Bootstrap 4.
557
+ *
558
+ * @since 5.2.02.01
559
+ *
560
+ * @return void
561
+ */
562
+ private static function register_popper1() {
563
+ wp_register_script( 'popper', FrmAppHelper::plugin_url() . '/js/popper.min.js', array( 'jquery' ), '1.16.0', true );
564
+ }
565
+
566
  /**
567
  * Automatically insert a Formidable block when loading Gutenberg with a $_GET['frmForm'] value set.
568
  *
classes/controllers/FrmXMLController.php CHANGED
@@ -201,6 +201,7 @@ class FrmXMLController {
201
  * @since 3.06
202
  *
203
  * @param object $xml The values included in the XML.
 
204
  */
205
  private static function set_new_form_name( &$xml ) {
206
  if ( ! isset( $xml->form ) ) {
@@ -209,28 +210,28 @@ class FrmXMLController {
209
 
210
  $name = FrmAppHelper::get_param( 'name', '', 'post', 'sanitize_text_field' );
211
  $description = FrmAppHelper::get_param( 'desc', '', 'post', 'sanitize_textarea_field' );
212
- if ( empty( $name ) && empty( $description ) ) {
213
  return;
214
  }
215
 
216
  // Get the main form ID.
217
  $set_name = 0;
218
  foreach ( $xml->form as $form ) {
219
- if ( ! isset( $form->parent_form_id ) || empty( $form->parent_form_id ) ) {
220
- $set_name = $form->id;
221
  }
222
  }
223
 
224
  foreach ( $xml->form as $form ) {
225
  // Maybe set the form name if this isn't a child form.
226
- if ( $set_name == $form->id ) {
227
  $form->name = $name;
228
  $form->description = $description;
229
  }
230
 
231
  // Use a unique key to prevent editing existing form.
232
- $name = sanitize_title( $form->name );
233
- $form->form_key = FrmAppHelper::get_unique_key( $name, 'frm_forms', 'form_key' );
234
  }
235
  }
236
 
201
  * @since 3.06
202
  *
203
  * @param object $xml The values included in the XML.
204
+ * @return void
205
  */
206
  private static function set_new_form_name( &$xml ) {
207
  if ( ! isset( $xml->form ) ) {
210
 
211
  $name = FrmAppHelper::get_param( 'name', '', 'post', 'sanitize_text_field' );
212
  $description = FrmAppHelper::get_param( 'desc', '', 'post', 'sanitize_textarea_field' );
213
+ if ( ! $name && ! $description ) {
214
  return;
215
  }
216
 
217
  // Get the main form ID.
218
  $set_name = 0;
219
  foreach ( $xml->form as $form ) {
220
+ if ( empty( $form->parent_form_id ) ) {
221
+ $set_name = (int) $form->id;
222
  }
223
  }
224
 
225
  foreach ( $xml->form as $form ) {
226
  // Maybe set the form name if this isn't a child form.
227
+ if ( $set_name === (int) $form->id ) {
228
  $form->name = $name;
229
  $form->description = $description;
230
  }
231
 
232
  // Use a unique key to prevent editing existing form.
233
+ $sanitized_form_name = sanitize_title( $form->name );
234
+ $form->form_key = FrmAppHelper::get_unique_key( $sanitized_form_name, 'frm_forms', 'form_key' );
235
  }
236
  }
237
 
classes/helpers/FrmAppHelper.php CHANGED
@@ -11,7 +11,7 @@ class FrmAppHelper {
11
  /**
12
  * @since 2.0
13
  */
14
- public static $plug_version = '5.2.02';
15
 
16
  /**
17
  * @since 1.07.02
11
  /**
12
  * @since 2.0
13
  */
14
+ public static $plug_version = '5.2.02.01';
15
 
16
  /**
17
  * @since 1.07.02
css/custom_theme.css.php CHANGED
@@ -1474,7 +1474,9 @@ select.frm_loading_lookup{
1474
  color:var(--repeat-icon-color)<?php echo esc_html( $important ); ?>;
1475
  }
1476
 
1477
- .with_frm_style .frm_combo_inputs_container > .form-field {
 
 
1478
  margin-bottom: 0 !important;
1479
  }
1480
 
1474
  color:var(--repeat-icon-color)<?php echo esc_html( $important ); ?>;
1475
  }
1476
 
1477
+ .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-first,
1478
+ .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-middle,
1479
+ .with_frm_style .frm_combo_inputs_container > .frm_form_subfield-last {
1480
  margin-bottom: 0 !important;
1481
  }
1482
 
formidable.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Formidable Forms
4
  Description: Quickly and easily create drag-and-drop forms
5
- Version: 5.2.02
6
  Plugin URI: https://formidableforms.com/
7
  Author URI: https://formidableforms.com/
8
  Author: Strategy11
2
  /*
3
  Plugin Name: Formidable Forms
4
  Description: Quickly and easily create drag-and-drop forms
5
+ Version: 5.2.02.01
6
  Plugin URI: https://formidableforms.com/
7
  Author URI: https://formidableforms.com/
8
  Author: Strategy11
js/formidable_admin.js CHANGED
@@ -8242,7 +8242,7 @@ function frmAdminBuildJS() {
8242
 
8243
  function getStrippedTemplateName( $li ) {
8244
  var $clone = $li.find( 'h3' ).clone();
8245
- $clone.find( 'svg, .frm-plan-required-tag' ).remove();
8246
  return $clone.html().trim();
8247
  }
8248
 
8242
 
8243
  function getStrippedTemplateName( $li ) {
8244
  var $clone = $li.find( 'h3' ).clone();
8245
+ $clone.find( 'svg, .frm-plan-required-tag, .frm-new-pill' ).remove();
8246
  return $clone.html().trim();
8247
  }
8248
 
languages/formidable.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Formidable Forms plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Formidable Forms 5.2.02\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/formidable\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-03-08T18:48:17+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: formidable\n"
@@ -199,7 +199,7 @@ msgstr ""
199
  #: classes/controllers/FrmEntriesController.php:11
200
  #: classes/controllers/FrmEntriesController.php:100
201
  #: classes/controllers/FrmFormsController.php:786
202
- #: classes/controllers/FrmXMLController.php:259
203
  #: classes/views/xml/import_form.php:121
204
  msgid "Entries"
205
  msgstr ""
@@ -318,7 +318,7 @@ msgstr ""
318
  #: classes/controllers/FrmFormsController.php:9
319
  #: classes/controllers/FrmFormsController.php:796
320
  #: classes/controllers/FrmStylesController.php:51
321
- #: classes/controllers/FrmXMLController.php:258
322
  #: classes/views/frm-forms/list.php:10
323
  #: classes/widgets/FrmElementorWidget.php:14
324
  msgid "Forms"
@@ -995,27 +995,27 @@ msgstr ""
995
  msgid "There was an error importing form"
996
  msgstr ""
997
 
998
- #: classes/controllers/FrmXMLController.php:294
999
  msgid "Oops, you didn't select a file."
1000
  msgstr ""
1001
 
1002
- #: classes/controllers/FrmXMLController.php:305
1003
  msgid "The file does not exist, please try again."
1004
  msgstr ""
1005
 
1006
- #: classes/controllers/FrmXMLController.php:334
1007
  msgid "XML import is not enabled on your server with the libxml_disable_entity_loader function."
1008
  msgstr ""
1009
 
1010
- #: classes/controllers/FrmXMLController.php:542
1011
  msgid "Please select a form"
1012
  msgstr ""
1013
 
1014
- #: classes/controllers/FrmXMLController.php:572
1015
  msgid "Form not found."
1016
  msgstr ""
1017
 
1018
- #: classes/controllers/FrmXMLController.php:604
1019
  msgid "There are no entries for that form."
1020
  msgstr ""
1021
 
2
  # This file is distributed under the same license as the Formidable Forms plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Formidable Forms 5.2.02.01\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/formidable\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-03-09T18:11:45+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: formidable\n"
199
  #: classes/controllers/FrmEntriesController.php:11
200
  #: classes/controllers/FrmEntriesController.php:100
201
  #: classes/controllers/FrmFormsController.php:786
202
+ #: classes/controllers/FrmXMLController.php:260
203
  #: classes/views/xml/import_form.php:121
204
  msgid "Entries"
205
  msgstr ""
318
  #: classes/controllers/FrmFormsController.php:9
319
  #: classes/controllers/FrmFormsController.php:796
320
  #: classes/controllers/FrmStylesController.php:51
321
+ #: classes/controllers/FrmXMLController.php:259
322
  #: classes/views/frm-forms/list.php:10
323
  #: classes/widgets/FrmElementorWidget.php:14
324
  msgid "Forms"
995
  msgid "There was an error importing form"
996
  msgstr ""
997
 
998
+ #: classes/controllers/FrmXMLController.php:295
999
  msgid "Oops, you didn't select a file."
1000
  msgstr ""
1001
 
1002
+ #: classes/controllers/FrmXMLController.php:306
1003
  msgid "The file does not exist, please try again."
1004
  msgstr ""
1005
 
1006
+ #: classes/controllers/FrmXMLController.php:335
1007
  msgid "XML import is not enabled on your server with the libxml_disable_entity_loader function."
1008
  msgstr ""
1009
 
1010
+ #: classes/controllers/FrmXMLController.php:543
1011
  msgid "Please select a form"
1012
  msgstr ""
1013
 
1014
+ #: classes/controllers/FrmXMLController.php:573
1015
  msgid "Form not found."
1016
  msgstr ""
1017
 
1018
+ #: classes/controllers/FrmXMLController.php:605
1019
  msgid "There are no entries for that form."
1020
  msgstr ""
1021
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: forms, contact form, form builder, survey, free, form maker, form creator,
5
  Requires at least: 5.2
6
  Tested up to: 5.9.1
7
  Requires PHP: 5.6
8
- Stable tag: 5.2.02
9
 
10
  The most advanced WordPress forms plugin. Go beyond contact forms with our drag & drop form builder for surveys, quizzes, and more.
11
 
@@ -438,6 +438,12 @@ Using our Zapier integration, you can easily connect Formidable with over 1000+
438
  See all <a href="https://zapier.com/apps/formidable/integrations">Formidable Zapier Integrations</a>.
439
 
440
  == Changelog ==
 
 
 
 
 
 
441
  = 5.2.02 =
442
  * Updated Bootstrap to version 4.6.1.
443
  * New: Name fields will be automatically used to define entry names if available.
@@ -452,12 +458,4 @@ See all <a href="https://zapier.com/apps/formidable/integrations">Formidable Zap
452
  * Fix: Checkbox fields were appearing as broken vertical lines when using the Enfold theme.
453
  * Fix: A deprecation message was occasionally logged in PHP8 when trying to decode null values.
454
 
455
- = 5.2 =
456
- * Increased WP version requirement to 5.2.
457
- * New: Added a new Embed Form modal and a new Embed button that appears in the form builder and form settings pages beside Preview and Update. Now a form can be embedded into a new page or an existing page with just a few clicks.
458
- * Fix: A Notice was being logged that wp_enqueue_script() was called incorrectly when loading the new Widgets editor since WordPress 5.8.
459
- * Fix: An unexpected array value in form data would cause some text fields to break in PHP8.
460
- * Fix: Some AJAX calls for API loaded forms were occasionally targeting the wrong site, causing unwanted redirects.
461
- * Fix: Dropdown field options were including redundant class="" HTML that has been removed.
462
-
463
  <a href="https://raw.githubusercontent.com/Strategy11/formidable-forms/master/changelog.txt">See changelog for all versions</a>
5
  Requires at least: 5.2
6
  Tested up to: 5.9.1
7
  Requires PHP: 5.6
8
+ Stable tag: 5.2.02.01
9
 
10
  The most advanced WordPress forms plugin. Go beyond contact forms with our drag & drop form builder for surveys, quizzes, and more.
11
 
438
  See all <a href="https://zapier.com/apps/formidable/integrations">Formidable Zapier Integrations</a>.
439
 
440
  == Changelog ==
441
+ = 5.2.02.01 =
442
+ * Fix: Fixed a conflict with Duplicator Pro that was causing dropdowns to break after updating to Bootstrap 4.
443
+ * Fix: Bottom margins were removed from credit card and address fields with last release and have been added back.
444
+ * Fix: Imported templates with multiple forms were getting imported with the wrong name.
445
+ * Fix: Clicking to install a quiz template was copying the NEW html into the form name input.
446
+
447
  = 5.2.02 =
448
  * Updated Bootstrap to version 4.6.1.
449
  * New: Name fields will be automatically used to define entry names if available.
458
  * Fix: Checkbox fields were appearing as broken vertical lines when using the Enfold theme.
459
  * Fix: A deprecation message was occasionally logged in PHP8 when trying to decode null values.
460
 
 
 
 
 
 
 
 
 
461
  <a href="https://raw.githubusercontent.com/Strategy11/formidable-forms/master/changelog.txt">See changelog for all versions</a>