Contact Form Plugin – Fastest Contact Form Builder Plugin for WordPress by Fluent Forms - Version 4.2.1

Version Description

(Date: Sep 01, 2021) = - Improvements on Conversational Forms - RTL Improvements - UI Improvements - New developer APIs - Performance improvements for form submissions

Download this release

Release Info

Developer techjewel
Plugin Icon 128x128 Contact Form Plugin – Fastest Contact Form Builder Plugin for WordPress by Fluent Forms
Version 4.2.1
Comparing to
See all releases

Code changes from version 4.2.0 to 4.2.1

Files changed (4) hide show
  1. app/Hooks/Common.php +25 -23
  2. fluentform.php +2 -2
  3. glue.json +1 -1
  4. readme.txt +2 -2
app/Hooks/Common.php CHANGED
@@ -409,33 +409,35 @@ $app->addFilter('fluentform_response_render_input_number', function ($response,
409
 
410
  new \FluentForm\App\Services\FormBuilder\Components\CustomSubmitButton();
411
 
412
- register_block_type('fluentfom/guten-block', array(
413
- 'render_callback' => function ($atts) {
 
414
 
415
- if(empty($atts['formId'])) {
416
- return '';
417
- }
418
 
419
- $className = \FluentForm\Framework\Helpers\ArrayHelper::get($atts, 'className');
420
 
421
- if ($className) {
422
- $classes = explode(' ', $className);
423
- $className = '';
424
- if (!empty($classes)) {
425
- foreach ($classes as $class) {
426
- $className .= sanitize_html_class($class) . " ";
 
427
  }
428
  }
429
- }
430
 
431
- return do_shortcode('[fluentform css_classes="' . $className . ' ff_guten_block" id="' . $atts['formId'] . '"]');
432
- },
433
- 'attributes' => array(
434
- 'formId' => array(
435
- 'type' => 'string'
436
- ),
437
- 'className' => array(
438
- 'type' => 'string'
 
439
  )
440
- )
441
- ));
409
 
410
  new \FluentForm\App\Services\FormBuilder\Components\CustomSubmitButton();
411
 
412
+ if(function_exists('register_block_type')) {
413
+ register_block_type('fluentfom/guten-block', array(
414
+ 'render_callback' => function ($atts) {
415
 
416
+ if(empty($atts['formId'])) {
417
+ return '';
418
+ }
419
 
420
+ $className = \FluentForm\Framework\Helpers\ArrayHelper::get($atts, 'className');
421
 
422
+ if ($className) {
423
+ $classes = explode(' ', $className);
424
+ $className = '';
425
+ if (!empty($classes)) {
426
+ foreach ($classes as $class) {
427
+ $className .= sanitize_html_class($class) . " ";
428
+ }
429
  }
430
  }
 
431
 
432
+ return do_shortcode('[fluentform css_classes="' . $className . ' ff_guten_block" id="' . $atts['formId'] . '"]');
433
+ },
434
+ 'attributes' => array(
435
+ 'formId' => array(
436
+ 'type' => 'string'
437
+ ),
438
+ 'className' => array(
439
+ 'type' => 'string'
440
+ )
441
  )
442
+ ));
443
+ }
fluentform.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Fluent Forms
4
  Description: Contact Form By Fluent Forms is the advanced Contact form plugin with drag and drop, multi column supported form builder plugin
5
- Version: 4.2.20
6
  Author: Contact Form - WPManageNinja LLC
7
  Author URI: https://fluentforms.com
8
  Plugin URI: https://wpmanageninja.com/wp-fluent-form/
@@ -16,7 +16,7 @@ defined('ABSPATH') or die;
16
  defined('FLUENTFORM') or define('FLUENTFORM', true);
17
  define('FLUENTFORM_DIR_PATH', plugin_dir_path(__FILE__));
18
 
19
- defined('FLUENTFORM_VERSION') or define('FLUENTFORM_VERSION', '4.2.20');
20
 
21
  if (!defined('FLUENTFORM_HAS_NIA')) {
22
  define('FLUENTFORM_HAS_NIA', true);
2
  /*
3
  Plugin Name: Fluent Forms
4
  Description: Contact Form By Fluent Forms is the advanced Contact form plugin with drag and drop, multi column supported form builder plugin
5
+ Version: 4.2.21
6
  Author: Contact Form - WPManageNinja LLC
7
  Author URI: https://fluentforms.com
8
  Plugin URI: https://wpmanageninja.com/wp-fluent-form/
16
  defined('FLUENTFORM') or define('FLUENTFORM', true);
17
  define('FLUENTFORM_DIR_PATH', plugin_dir_path(__FILE__));
18
 
19
+ defined('FLUENTFORM_VERSION') or define('FLUENTFORM_VERSION', '4.2.21');
20
 
21
  if (!defined('FLUENTFORM_HAS_NIA')) {
22
  define('FLUENTFORM_HAS_NIA', true);
glue.json CHANGED
@@ -2,7 +2,7 @@
2
  "plugin_name": "FluentForm",
3
  "plugin_slug": "fluentform",
4
  "plugin_text_domain": "fluentform",
5
- "plugin_version": "4.2.20",
6
  "plugin_description": "The most advanced drag and drop form builder plugin for WordPress",
7
  "plugin_uri": "https://wpfluentforms.com",
8
  "plugin_license": "GPLv2 or later",
2
  "plugin_name": "FluentForm",
3
  "plugin_slug": "fluentform",
4
  "plugin_text_domain": "fluentform",
5
+ "plugin_version": "4.2.21",
6
  "plugin_description": "The most advanced drag and drop form builder plugin for WordPress",
7
  "plugin_uri": "https://wpfluentforms.com",
8
  "plugin_license": "GPLv2 or later",
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: contact form, contact forms, wp forms, forms, form builder, contact form b
4
  Requires at least: 4.5
5
  Tested up to: 5.8.0
6
  Requires PHP: 5.6
7
- Stable tag: 4.2.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -341,7 +341,7 @@ The entire source code is <a href="https://github.com/fluentform/fluentform">ava
341
 
342
  == Changelog ==
343
 
344
- = 4.2.0 (Date: Sep 01, 2021) =
345
  - Improvements on Conversational Forms
346
  - RTL Improvements
347
  - UI Improvements
4
  Requires at least: 4.5
5
  Tested up to: 5.8.0
6
  Requires PHP: 5.6
7
+ Stable tag: 4.2.21
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
341
 
342
  == Changelog ==
343
 
344
+ = 4.2.1 (Date: Sep 01, 2021) =
345
  - Improvements on Conversational Forms
346
  - RTL Improvements
347
  - UI Improvements