Version Description
- Fixed: Incorrect documenation link for Input Mask.
- Fixed: Input Mask value disappearing when form builder is refreshed.
Download this release
Release Info
Developer | jaredatch |
Plugin | Contact Form by WPForms – Drag & Drop Form Builder for WordPress |
Version | 1.4.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.5.1 to 1.4.5.2
- assets/js/wpforms.js +0 -1
- changelog.txt +4 -0
- includes/fields/class-checkbox.php +5 -0
- includes/fields/class-radio.php +5 -0
- includes/fields/class-text.php +2 -2
- languages/wpforms.pot +14 -14
- readme.txt +4 -0
- wpforms.php +2 -2
assets/js/wpforms.js
CHANGED
@@ -162,7 +162,6 @@
|
|
162 |
errorClass: 'wpforms-error',
|
163 |
validClass: 'wpforms-valid',
|
164 |
errorPlacement: function( error, element ) {
|
165 |
-
console.log(error);
|
166 |
if ( element.attr( 'type' ) === 'radio' || element.attr( 'type' ) === 'checkbox' ) {
|
167 |
if ( element.hasClass( 'wpforms-likert-scale-option' ) ) {
|
168 |
if ( element.closest( 'table' ).hasClass( 'single-row' ) ) {
|
162 |
errorClass: 'wpforms-error',
|
163 |
validClass: 'wpforms-valid',
|
164 |
errorPlacement: function( error, element ) {
|
|
|
165 |
if ( element.attr( 'type' ) === 'radio' || element.attr( 'type' ) === 'checkbox' ) {
|
166 |
if ( element.hasClass( 'wpforms-likert-scale-option' ) ) {
|
167 |
if ( element.closest( 'table' ).hasClass( 'single-row' ) ) {
|
changelog.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
3 |
= 1.4.5.1 =
|
4 |
- Fixed: Dynamic choices not displaying correctly for Multiple Choice and Checkbox fields.
|
5 |
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.4.5.2 =
|
4 |
+
- Fixed: Incorrect documenation link for Input Mask.
|
5 |
+
- Fixed: Input Mask value disappearing when form builder is refreshed.
|
6 |
+
|
7 |
= 1.4.5.1 =
|
8 |
- Fixed: Dynamic choices not displaying correctly for Multiple Choice and Checkbox fields.
|
9 |
|
includes/fields/class-checkbox.php
CHANGED
@@ -164,6 +164,11 @@ class WPForms_Field_Checkbox extends WPForms_Field {
|
|
164 |
);
|
165 |
}
|
166 |
|
|
|
|
|
|
|
|
|
|
|
167 |
// Custom properties if image choices is enabled.
|
168 |
if ( ! $dynamic && ! empty( $field['choices_images'] ) ) {
|
169 |
|
164 |
);
|
165 |
}
|
166 |
|
167 |
+
// Required class for pagebreak validation.
|
168 |
+
if ( ! empty( $field['required'] ) ) {
|
169 |
+
$properties['input_container']['class'][] = 'wpforms-field-required';
|
170 |
+
}
|
171 |
+
|
172 |
// Custom properties if image choices is enabled.
|
173 |
if ( ! $dynamic && ! empty( $field['choices_images'] ) ) {
|
174 |
|
includes/fields/class-radio.php
CHANGED
@@ -154,6 +154,11 @@ class WPForms_Field_Radio extends WPForms_Field {
|
|
154 |
);
|
155 |
}
|
156 |
|
|
|
|
|
|
|
|
|
|
|
157 |
// Custom properties if image choices is enabled.
|
158 |
if ( ! $dynamic && ! empty( $field['choices_images'] ) ) {
|
159 |
|
154 |
);
|
155 |
}
|
156 |
|
157 |
+
// Required class for pagebreak validation.
|
158 |
+
if ( ! empty( $field['required'] ) ) {
|
159 |
+
$properties['input_container']['class'][] = 'wpforms-field-required';
|
160 |
+
}
|
161 |
+
|
162 |
// Custom properties if image choices is enabled.
|
163 |
if ( ! $dynamic && ! empty( $field['choices_images'] ) ) {
|
164 |
|
includes/fields/class-text.php
CHANGED
@@ -129,7 +129,7 @@ class WPForms_Field_Text extends WPForms_Field {
|
|
129 |
'slug' => 'input_mask',
|
130 |
'value' => esc_html__( 'Input Mask', 'wpforms' ),
|
131 |
'tooltip' => esc_html__( 'Enter your custom input mask.', 'wpforms' ),
|
132 |
-
'after_tooltip' => '<a href="https://wpforms.com/
|
133 |
),
|
134 |
false
|
135 |
);
|
@@ -138,7 +138,7 @@ class WPForms_Field_Text extends WPForms_Field {
|
|
138 |
$field,
|
139 |
array(
|
140 |
'slug' => 'input_mask',
|
141 |
-
'value' => ! empty( $field['
|
142 |
),
|
143 |
false
|
144 |
);
|
129 |
'slug' => 'input_mask',
|
130 |
'value' => esc_html__( 'Input Mask', 'wpforms' ),
|
131 |
'tooltip' => esc_html__( 'Enter your custom input mask.', 'wpforms' ),
|
132 |
+
'after_tooltip' => '<a href="https://wpforms.com/how-to-use-custom-input-masks/" class="after-label-description" target="_blank" rel="noopener noreferrer">' . esc_html__( 'See Examples & Docs', 'wpforms' ) . '</a>',
|
133 |
),
|
134 |
false
|
135 |
);
|
138 |
$field,
|
139 |
array(
|
140 |
'slug' => 'input_mask',
|
141 |
+
'value' => ! empty( $field['input_mask'] ) ? esc_attr( $field['input_mask'] ) : '',
|
142 |
),
|
143 |
false
|
144 |
);
|
languages/wpforms.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the WPForms package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WPForms 1.4.5.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpforms\n"
|
7 |
-
"POT-Creation-Date: 2018-03-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -1031,9 +1031,9 @@ msgid ""
|
|
1031 |
"a>?"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
-
#. #-#-#-#-# wpforms.pot (WPForms 1.4.5.
|
1035 |
#. Plugin Name of the plugin/theme
|
1036 |
-
#. #-#-#-#-# wpforms.pot (WPForms 1.4.5.
|
1037 |
#. Author of the plugin/theme
|
1038 |
#: includes/admin/class-menu.php:39 includes/admin/class-menu.php:40
|
1039 |
#: includes/admin/class-menu.php:51 includes/admin/class-menu.php:103
|
@@ -2631,29 +2631,29 @@ msgstr ""
|
|
2631 |
msgid "Third Choice"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
-
#: includes/fields/class-checkbox.php:
|
2635 |
msgid "Randomize Choices"
|
2636 |
msgstr ""
|
2637 |
|
2638 |
-
#: includes/fields/class-checkbox.php:
|
2639 |
msgid "Check this option to randomize the order of the choices."
|
2640 |
msgstr ""
|
2641 |
|
2642 |
-
#: includes/fields/class-checkbox.php:
|
2643 |
#: includes/fields/class-select.php:97
|
2644 |
msgid "Show Values"
|
2645 |
msgstr ""
|
2646 |
|
2647 |
-
#: includes/fields/class-checkbox.php:
|
2648 |
#: includes/fields/class-select.php:98
|
2649 |
msgid "Check this to manually set form field values."
|
2650 |
msgstr ""
|
2651 |
|
2652 |
-
#: includes/fields/class-checkbox.php:
|
2653 |
msgid "Enable Disclaimer / Terms of Service Display"
|
2654 |
msgstr ""
|
2655 |
|
2656 |
-
#: includes/fields/class-checkbox.php:
|
2657 |
msgid ""
|
2658 |
"Check this option apply adjust the field styling to support Disclaimers and "
|
2659 |
"Terms of Serice type agreements."
|
@@ -5738,7 +5738,7 @@ msgstr ""
|
|
5738 |
msgid "Third Item"
|
5739 |
msgstr ""
|
5740 |
|
5741 |
-
#: pro/includes/fields/class-payment-dropdown.php:
|
5742 |
msgid "Invalid payment option"
|
5743 |
msgstr ""
|
5744 |
|
@@ -5746,7 +5746,7 @@ msgstr ""
|
|
5746 |
msgid "Multiple Items"
|
5747 |
msgstr ""
|
5748 |
|
5749 |
-
#: pro/includes/fields/class-payment-multiple.php:
|
5750 |
msgid "Invalid payment option."
|
5751 |
msgstr ""
|
5752 |
|
@@ -6057,9 +6057,9 @@ msgstr ""
|
|
6057 |
msgid "Please deactivate WPForms Lite before activating WPForms."
|
6058 |
msgstr ""
|
6059 |
|
6060 |
-
#. #-#-#-#-# wpforms.pot (WPForms 1.4.5.
|
6061 |
#. Plugin URI of the plugin/theme
|
6062 |
-
#. #-#-#-#-# wpforms.pot (WPForms 1.4.5.
|
6063 |
#. Author URI of the plugin/theme
|
6064 |
msgid "https://wpforms.com"
|
6065 |
msgstr ""
|
2 |
# This file is distributed under the same license as the WPForms package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WPForms 1.4.5.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpforms\n"
|
7 |
+
"POT-Creation-Date: 2018-03-21 16:04:37+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
1031 |
"a>?"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
+
#. #-#-#-#-# wpforms.pot (WPForms 1.4.5.2) #-#-#-#-#
|
1035 |
#. Plugin Name of the plugin/theme
|
1036 |
+
#. #-#-#-#-# wpforms.pot (WPForms 1.4.5.2) #-#-#-#-#
|
1037 |
#. Author of the plugin/theme
|
1038 |
#: includes/admin/class-menu.php:39 includes/admin/class-menu.php:40
|
1039 |
#: includes/admin/class-menu.php:51 includes/admin/class-menu.php:103
|
2631 |
msgid "Third Choice"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
+
#: includes/fields/class-checkbox.php:263 includes/fields/class-radio.php:246
|
2635 |
msgid "Randomize Choices"
|
2636 |
msgstr ""
|
2637 |
|
2638 |
+
#: includes/fields/class-checkbox.php:264 includes/fields/class-radio.php:247
|
2639 |
msgid "Check this option to randomize the order of the choices."
|
2640 |
msgstr ""
|
2641 |
|
2642 |
+
#: includes/fields/class-checkbox.php:282 includes/fields/class-radio.php:265
|
2643 |
#: includes/fields/class-select.php:97
|
2644 |
msgid "Show Values"
|
2645 |
msgstr ""
|
2646 |
|
2647 |
+
#: includes/fields/class-checkbox.php:283 includes/fields/class-radio.php:266
|
2648 |
#: includes/fields/class-select.php:98
|
2649 |
msgid "Check this to manually set form field values."
|
2650 |
msgstr ""
|
2651 |
|
2652 |
+
#: includes/fields/class-checkbox.php:320
|
2653 |
msgid "Enable Disclaimer / Terms of Service Display"
|
2654 |
msgstr ""
|
2655 |
|
2656 |
+
#: includes/fields/class-checkbox.php:321
|
2657 |
msgid ""
|
2658 |
"Check this option apply adjust the field styling to support Disclaimers and "
|
2659 |
"Terms of Serice type agreements."
|
5738 |
msgid "Third Item"
|
5739 |
msgstr ""
|
5740 |
|
5741 |
+
#: pro/includes/fields/class-payment-dropdown.php:223
|
5742 |
msgid "Invalid payment option"
|
5743 |
msgstr ""
|
5744 |
|
5746 |
msgid "Multiple Items"
|
5747 |
msgstr ""
|
5748 |
|
5749 |
+
#: pro/includes/fields/class-payment-multiple.php:357
|
5750 |
msgid "Invalid payment option."
|
5751 |
msgstr ""
|
5752 |
|
6057 |
msgid "Please deactivate WPForms Lite before activating WPForms."
|
6058 |
msgstr ""
|
6059 |
|
6060 |
+
#. #-#-#-#-# wpforms.pot (WPForms 1.4.5.2) #-#-#-#-#
|
6061 |
#. Plugin URI of the plugin/theme
|
6062 |
+
#. #-#-#-#-# wpforms.pot (WPForms 1.4.5.2) #-#-#-#-#
|
6063 |
#. Author URI of the plugin/theme
|
6064 |
msgid "https://wpforms.com"
|
6065 |
msgstr ""
|
readme.txt
CHANGED
@@ -211,6 +211,10 @@ Syed Balkhi
|
|
211 |
|
212 |
== Changelog ==
|
213 |
|
|
|
|
|
|
|
|
|
214 |
= 1.4.5.1 =
|
215 |
- Fixed: Dynamic choices not displaying correctly for Multiple Choice and Checkbox fields.
|
216 |
|
211 |
|
212 |
== Changelog ==
|
213 |
|
214 |
+
= 1.4.5.2 =
|
215 |
+
- Fixed: Incorrect documenation link for Input Mask.
|
216 |
+
- Fixed: Input Mask value disappearing when form builder is refreshed.
|
217 |
+
|
218 |
= 1.4.5.1 =
|
219 |
- Fixed: Dynamic choices not displaying correctly for Multiple Choice and Checkbox fields.
|
220 |
|
wpforms.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
|
6 |
* Author: WPForms
|
7 |
* Author URI: https://wpforms.com
|
8 |
-
* Version: 1.4.5.
|
9 |
* Text Domain: wpforms
|
10 |
* Domain Path: languages
|
11 |
*
|
@@ -92,7 +92,7 @@ if ( class_exists( 'WPForms' ) ) {
|
|
92 |
*
|
93 |
* @var string
|
94 |
*/
|
95 |
-
public $version = '1.4.5.
|
96 |
|
97 |
/**
|
98 |
* The form data handler instance.
|
5 |
* Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
|
6 |
* Author: WPForms
|
7 |
* Author URI: https://wpforms.com
|
8 |
+
* Version: 1.4.5.2
|
9 |
* Text Domain: wpforms
|
10 |
* Domain Path: languages
|
11 |
*
|
92 |
*
|
93 |
* @var string
|
94 |
*/
|
95 |
+
public $version = '1.4.5.2';
|
96 |
|
97 |
/**
|
98 |
* The form data handler instance.
|