Skip to content

Commit f085600

Browse files
authored
Merge pull request #198 from BoldGrid/1.6.17-rc1
Build rc for testing
2 parents 71b9420 + b6aeea7 commit f085600

File tree

9 files changed

+178
-98
lines changed

9 files changed

+178
-98
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# weForms - Easy Drag & Drop Contact Form Builder For WordPress #
2-
**Contributors:** [tareq1988](https://profiles.wordpress.org/tareq1988), [nizamuddinbabu](https://profiles.wordpress.org/nizamuddinbabu), [boldgrid](https://profiles.wordpress.org/boldgrid), [joemoto](https://profiles.wordpress.org/joemoto), [jamesros161](https://profiles.wordpress.org/jamesros161), [avonville1](https://profiles.wordpress.org/avonville1)
3-
**Tags:** forms, contact form, contact form plugin, custom form, form builder, form, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation
4-
**Requires at least:** 5.0
5-
**Requires PHP:** 7.2
6-
**Tested up to:** 5.9
7-
**Stable tag:** 1.6.16
8-
**License:** GPLv2 or later
9-
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
2+
**Contributors:** [tareq1988](https://profiles.wordpress.org/tareq1988/), [nizamuddinbabu](https://profiles.wordpress.org/nizamuddinbabu/), [boldgrid](https://profiles.wordpress.org/boldgrid/), [joemoto](https://profiles.wordpress.org/joemoto/), [jamesros161](https://profiles.wordpress.org/jamesros161/), [avonville1](https://profiles.wordpress.org/avonville1/)
3+
**Tags:** forms, contact form, contact form plugin, custom form, form builder, form, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation
4+
**Requires at least:** 5.0
5+
**Requires PHP:** 7.2
6+
**Tested up to:** 6.1
7+
**Stable tag:** 1.6.17
8+
**License:** GPLv2 or later
9+
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
1010

1111
The easiest & fastest Contact Form on WordPress. Multiple templates, drag-&-drop live builder, submission listing, reCaptcha & more!
1212

@@ -237,7 +237,12 @@ weForms is the most beginner friendly and fastest WordPress contact form plugin
237237

238238
## Changelog ##
239239

240-
### Version 1.6.16 ( TBD ) ###
240+
### Version 1.6.17 ( 28 February, 2023 ) ###
241+
* **Fix:** Array Key "name" doesnt exist for custom html field.
242+
* **Fix:** Fixes contrast for form white text error messages.
243+
* **Fix:** New lines being removed in textarea field.
244+
245+
### Version 1.6.16 ( 12 December, 2022 ) ###
241246
* **Fix:** Empty field entries ending form entries view script.
242247
* **Fix:** Missing html tag on textarea field.
243248

assets/js/spa-app.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
'use strict';
22

3-
var _typeof22 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3+
var _typeof24 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4+
5+
var _typeof23 = typeof Symbol === "function" && _typeof24(Symbol.iterator) === "symbol" ? function (obj) {
6+
return typeof obj === "undefined" ? "undefined" : _typeof24(obj);
7+
} : function (obj) {
8+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof24(obj);
9+
};
10+
11+
var _typeof22 = typeof Symbol === "function" && _typeof23(Symbol.iterator) === "symbol" ? function (obj) {
12+
return typeof obj === "undefined" ? "undefined" : _typeof23(obj);
13+
} : function (obj) {
14+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof23(obj);
15+
};
416

517
var _typeof21 = typeof Symbol === "function" && _typeof22(Symbol.iterator) === "symbol" ? function (obj) {
618
return typeof obj === "undefined" ? "undefined" : _typeof22(obj);

assets/js/spa-app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/class-notification.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,39 @@ public function send_notification( $notification ) {
121121
$headers[] = 'Content-Type: text/html; charset=UTF-8';
122122
$email_body = apply_filters( 'weforms_email_message', $this->get_formatted_body( $message ), $notification['message'], $headers );
123123

124+
/**
125+
* Added the display style to the safe styles during wp_kses_post().
126+
* WP kses post removes the display css property that we need when formatting the Checkbox and Multiple Choice Grids.
127+
* This function will only run during the notification process.
128+
*
129+
* @since 1.6.17
130+
*/
131+
add_filter( 'safe_style_css', function( $styles ) {
132+
$styles[] = 'display';
133+
return $styles;
134+
} );
135+
136+
/**
137+
* Added the input tag to the allowed html during wp_kses_post().
138+
* WP kses post removes the input tag that we need when formatting the Checkbox and Multiple Choice Grids.
139+
* The $message variable is formatted during the entry creation process. The values from the form are sanitized to avoid
140+
* any issues with malicious inputs.
141+
*
142+
* This function is only used during the notification process.
143+
*
144+
* @since 1.6.17
145+
*/
146+
add_filter( 'wp_kses_allowed_html', function( $html ) {
147+
$html['input'] = array(
148+
'class' => array(),
149+
'name' => array(),
150+
'type' => array(),
151+
'value' => array(),
152+
'checked' => array(),
153+
'disabled' => array(),
154+
);
155+
return $html;
156+
} );
124157
weforms()->emailer->send( $to, $subject, wp_kses_post( htmlspecialchars_decode( $email_body ) ) , $headers );
125158
}
126159

languages/weforms.pot

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Copyright (C) 2022 weForms
1+
# Copyright (C) 2023 weForms
22
# This file is distributed under the GPL2 or later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: weForms 1.6.16\n"
5+
"Project-Id-Version: weForms 1.6.17\n"
66
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7-
"POT-Creation-Date: 2022-12-02 17:58:51+00:00\n"
7+
"POT-Creation-Date: 2023-02-22 16:55:39+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
11-
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
11+
"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
1414
"Language: en\n"
@@ -1756,7 +1756,7 @@ msgstr ""
17561756
msgid "Open Form"
17571757
msgstr ""
17581758

1759-
#: includes/class-notification.php:295
1759+
#: includes/class-notification.php:328
17601760
msgid ".."
17611761
msgstr ""
17621762

@@ -1869,14 +1869,14 @@ msgstr ""
18691869

18701870
#: includes/fields/class-abstract-fields.php:256
18711871
#: includes/fields/class-field-hidden.php:46
1872-
#: includes/fields/class-field-html.php:60
1872+
#: includes/fields/class-field-html.php:68
18731873
#: includes/fields/class-field-sectionbreak.php:63
18741874
msgid "Meta Key"
18751875
msgstr ""
18761876

18771877
#: includes/fields/class-abstract-fields.php:260
18781878
#: includes/fields/class-field-hidden.php:50
1879-
#: includes/fields/class-field-html.php:64
1879+
#: includes/fields/class-field-html.php:72
18801880
#: includes/fields/class-field-sectionbreak.php:67
18811881
msgid "Name of the meta key this field will save to"
18821882
msgstr ""
@@ -2103,15 +2103,15 @@ msgstr ""
21032103
msgid "Custom HTML"
21042104
msgstr ""
21052105

2106-
#: includes/fields/class-field-html.php:52
2106+
#: includes/fields/class-field-html.php:60
21072107
msgid "Html Codes"
21082108
msgstr ""
21092109

2110-
#: includes/fields/class-field-html.php:56
2110+
#: includes/fields/class-field-html.php:64
21112111
msgid "Paste your HTML codes, WordPress shortcodes will also work here"
21122112
msgstr ""
21132113

2114-
#: includes/fields/class-field-html.php:80
2114+
#: includes/fields/class-field-html.php:88
21152115
msgid "HTML Section"
21162116
msgstr ""
21172117

0 commit comments

Comments
 (0)