Contact Form for WordPress – Ultimate Form Builder Lite - Version 1.1.0

Version Description

  • Fixed small bug for number field
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Contact Form for WordPress – Ultimate Form Builder Lite
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.9 to 1.1.0

classes/ufbl-lib.php CHANGED
@@ -195,9 +195,10 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
195
  }
196
  break;
197
  case 'dropdown':
 
198
  if ( isset( $form_data[$key] ) ) {
199
 
200
- if ( is_array( $val ) ) {
201
  $val = array_map( 'sanitize_text_field', $form_data[$key] );
202
  $val = implode( ',', $val );
203
  } else {
@@ -206,8 +207,7 @@ if ( !class_exists( 'UFBL_Lib' ) ) {
206
  } else {
207
  $val = '';
208
  }
209
-
210
- if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
211
  $error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
212
  $error_flag = 1;
213
  $form_response['error_keys'][$key] = $error_message;
195
  }
196
  break;
197
  case 'dropdown':
198
+
199
  if ( isset( $form_data[$key] ) ) {
200
 
201
+ if ( is_array( $form_data[$key] ) ) {
202
  $val = array_map( 'sanitize_text_field', $form_data[$key] );
203
  $val = implode( ',', $val );
204
  } else {
207
  } else {
208
  $val = '';
209
  }
210
+ if ( isset( $field_data[$key]['required'] ) && $field_data[$key]['required'] == 1 && $val == '' ) {
 
211
  $error_message = (isset( $field_data[$key]['error_message'] ) && $field_data[$key]['error_message'] != '') ? $field_data[$key]['error_message'] : __( 'This field is required', 'ultimate-form-builder-lite' );
212
  $error_flag = 1;
213
  $form_response['error_keys'][$key] = $error_message;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: contact form, form builder, form, forms, contact forms, enquiry forms, for
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.4
7
- Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -95,6 +95,9 @@ Once you install the plugin , you can check some general documentation about how
95
  10. Backend Entry Detail
96
 
97
  == Changelog ==
 
 
 
98
  = 1.0.9 =
99
  * Fixed small bug for select dropdown
100
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.4
7
+ Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
95
  10. Backend Entry Detail
96
 
97
  == Changelog ==
98
+ = 1.1.0 =
99
+ * Fixed small bug for number field
100
+
101
  = 1.0.9 =
102
  * Fixed small bug for select dropdown
103
 
ultimate-form-builder-lite.php CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
6
  Plugin Name: Ultimate Form Builder Lite
7
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
8
  Description: A plugin to build any type of forms
9
- Version: 1.0.9
10
  Author: AccessPress Themes
11
  Author URI: http://accesspressthemes.com
12
  License: GPL2
@@ -19,7 +19,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
19
  * Necessary Constants for plugin
20
  */
21
  global $wpdb;
22
- defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.0.9' ); //plugin version
23
  defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
24
  defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
25
  defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
6
  Plugin Name: Ultimate Form Builder Lite
7
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
8
  Description: A plugin to build any type of forms
9
+ Version: 1.1.0
10
  Author: AccessPress Themes
11
  Author URI: http://accesspressthemes.com
12
  License: GPL2
19
  * Necessary Constants for plugin
20
  */
21
  global $wpdb;
22
+ defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.1.0' ); //plugin version
23
  defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
24
  defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
25
  defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory