Skip to content

Commit 153a2b0

Browse files
authored
Merge pull request #169 from BoldGrid/1.6.14-rc1
1.6.14 release
2 parents 7a7acab + 24fc774 commit 153a2b0

File tree

12 files changed

+97
-52
lines changed

12 files changed

+97
-52
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Requires at least:** 5.0
55
**Requires PHP:** 7.2
66
**Tested up to:** 5.9
7-
**Stable tag:** 1.6.13
7+
**Stable tag:** 1.6.14
88
**License:** GPLv2 or later
99
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
1010

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

238238
## Changelog ##
239239

240+
### Version 1.6.14 (29 June, 2022) ###
241+
* **Update:** Bumped grunt version to 1.5.3.
242+
* **Update:** Bumped simple-get version to 3.1.1.
243+
* **Update:** Bumped minimist version to 1.2.6.
244+
* **Update:** Bumped follow-redirects version to 1.14.8.
245+
* **Update:** Updated default submit button text.
246+
* **Update:** Updated fields compatbility with Crio Theme for "use theme CSS".
247+
* **Fix:** Fixed CSS compatbility issues with "use theme CSS" feature.
248+
240249
### Version 1.6.13 (02 March, 2022) ###
241250
* **Fix:** Fixes placeholders being blank on the frontend.
242251
* **Fix:** Fixes issue setting multiple field tag in notification body.

assets/js/spa-app.js

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

3-
var _typeof13 = 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 _typeof17 = 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 _typeof16 = typeof Symbol === "function" && _typeof17(Symbol.iterator) === "symbol" ? function (obj) {
6+
return typeof obj === "undefined" ? "undefined" : _typeof17(obj);
7+
} : function (obj) {
8+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof17(obj);
9+
};
10+
11+
var _typeof15 = typeof Symbol === "function" && _typeof16(Symbol.iterator) === "symbol" ? function (obj) {
12+
return typeof obj === "undefined" ? "undefined" : _typeof16(obj);
13+
} : function (obj) {
14+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof16(obj);
15+
};
16+
17+
var _typeof14 = typeof Symbol === "function" && _typeof15(Symbol.iterator) === "symbol" ? function (obj) {
18+
return typeof obj === "undefined" ? "undefined" : _typeof15(obj);
19+
} : function (obj) {
20+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof15(obj);
21+
};
22+
23+
var _typeof13 = typeof Symbol === "function" && _typeof14(Symbol.iterator) === "symbol" ? function (obj) {
24+
return typeof obj === "undefined" ? "undefined" : _typeof14(obj);
25+
} : function (obj) {
26+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof14(obj);
27+
};
428

529
var _typeof12 = typeof Symbol === "function" && _typeof13(Symbol.iterator) === "symbol" ? function (obj) {
630
return typeof obj === "undefined" ? "undefined" : _typeof13(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.

assets/wpuf/css/frontend-forms.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ ul.wpuf-form li .wpuf-fields a.file-selector {
268268
-moz-border-radius: 3px;
269269
border-radius: 3px;
270270
background: #fafafa;
271-
color: #23282d;
272271
box-shadow: 0 1px 0 #cccccc;
273272
vertical-align: top;
274273
cursor: pointer;

includes/class-ajax.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public function save_form() {
110110

111111
if ( isset( $post_data['settings'] ) ) {
112112
$settings = (array) json_decode( $post_data['settings'] );
113+
$settings['message'] = sanitize_text_field( $settings['message'] );
114+
error_log(print_r($settings, true));
113115
} else {
114116
$settings = isset( $form_data['wpuf_settings'] ) ? $form_data['wpuf_settings'] : [];
115117
}

includes/class-frontend-form.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ public function render_form( $form, $atts ) {
6767
$show_credit = weforms_get_settings( 'credit', false );
6868
$formid = 'weforms-' . $form->id;
6969
$use_theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use_theme_css'] : 'wpuf-style';
70-
70+
// if ( $use_theme_css === $form_settings['use_theme_css'] ) {
71+
// wp_dequeue_style( 'weforms-css' );
72+
// }
7173
if ( isset( $atts['modal'] ) && 'true' == $atts['modal'] ) {
7274
wp_enqueue_script( 'weforms-modal-js', WEFORMS_ASSET_URI . '/modal/jquery.modal.js', [ 'jquery', 'weforms-form' ], false, false );
7375
wp_enqueue_style( 'weforms_modal_styles', WEFORMS_ASSET_URI . '/modal/jquery.modal.css' );

includes/fields/class-field-image.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ public function __construct() {
2020
* @return void
2121
*/
2222
public function render( $field_settings, $form_id ) {
23+
$form_settings = weforms()->form->get( $form_id )->get_settings();
2324
$use_theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use_theme_css'] : 'wpuf-style';
2425
$unique_id = sprintf( '%s-%d', $field_settings['name'], $form_id ); ?>
2526
<li <?php $this->print_list_attributes( $field_settings ); ?>>
2627
<?php $this->print_label( $field_settings, $form_id ); ?>
2728
<div class="wpuf-fields">
28-
<div id="wpuf-<?php echo esc_attr( $unique_id ); ?>-upload-container">
29-
<div class="wpuf-attachment-upload-filelist" data-type="file" data-required="<?php echo esc_attr( $field_settings['required'] ); ?>" data-style="<?php echo esc_attr( $use_theme_css ); ?>">
30-
<a id="wpuf-<?php echo esc_attr( $unique_id ); ?>-pickfiles" data-form_id="<?php echo esc_attr( $form_id ); ?>" class="button file-selector <?php echo ' wpuf_' . esc_attr( $field_settings['name'] ) . '_' . esc_attr(
29+
<div id="wpuf-<?php echo esc_attr( $unique_id ); ?>-upload-container" data-style="<?php echo esc_attr( $use_theme_css ); ?>">
30+
<div class="wpuf-attachment-upload-filelist" data-style="<?php echo esc_attr( $use_theme_css ); ?>" data-type="file" data-required="<?php echo esc_attr( $field_settings['required'] ); ?>" data-style="<?php echo esc_attr( $use_theme_css ); ?>">
31+
<a id="wpuf-<?php echo esc_attr( $unique_id ); ?>-pickfiles" data-style="<?php echo esc_attr( $use_theme_css ); ?>" data-form_id="<?php echo esc_attr( $form_id ); ?>" class="button file-selector <?php echo ' wpuf_' . esc_attr( $field_settings['name'] ) . '_' . esc_attr(
3132
$form_id); ?>" href="#"><?php echo esc_attr ( $field_settings['button_label'] ); ?></a>
32-
3333
<ul class="wpuf-attachment-list thumbnails"></ul>
3434
</div>
3535
</div><!-- .container -->

languages/weforms.pot

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# This file is distributed under the GPL2 or later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: weForms 1.6.13\n"
5+
"Project-Id-Version: weForms 1.6.14\n"
66
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7-
"POT-Creation-Date: 2022-02-25 17:26:40+00:00\n"
7+
"POT-Creation-Date: 2022-06-28 23:22:30+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -837,10 +837,10 @@ msgstr ""
837837
#: includes/fields/class-field-name.php:213
838838
#: includes/fields/class-field-radio.php:113
839839
#: includes/fields/class-field-radio.php:117
840-
#: includes/fields/class-field-text.php:142
841-
#: includes/fields/class-field-text.php:146
842-
#: includes/fields/class-field-textarea.php:138
843-
#: includes/fields/class-field-textarea.php:142
840+
#: includes/fields/class-field-text.php:143
841+
#: includes/fields/class-field-text.php:147
842+
#: includes/fields/class-field-textarea.php:139
843+
#: includes/fields/class-field-textarea.php:143
844844
#: includes/fields/class-field-url.php:98
845845
#: includes/fields/class-field-url.php:102
846846
msgid "Unauthorized operation"
@@ -1381,7 +1381,7 @@ msgstr ""
13811381

13821382
#: includes/api/class-weforms-entries-controller.php:136
13831383
#: includes/api/class-weforms-entries-controller.php:193
1384-
#: includes/class-ajax.php:660 includes/class-ajax.php:687
1384+
#: includes/class-ajax.php:662 includes/class-ajax.php:689
13851385
msgid "No entry ids provided!"
13861386
msgstr ""
13871387

@@ -1455,13 +1455,13 @@ msgid "Fields deleted successfully "
14551455
msgstr ""
14561456

14571457
#: includes/api/class-weforms-forms-controller.php:245
1458-
#: includes/class-ajax.php:519 includes/class-ajax.php:524
1458+
#: includes/class-ajax.php:521 includes/class-ajax.php:526
14591459
msgid "No form fields found!"
14601460
msgstr ""
14611461

14621462
#: includes/api/class-weforms-forms-controller.php:251
1463-
#: includes/class-ajax.php:846 includes/class-ajax.php:855
1464-
#: includes/class-ajax.php:896 includes/class-ajax.php:911
1463+
#: includes/class-ajax.php:848 includes/class-ajax.php:857
1464+
#: includes/class-ajax.php:898 includes/class-ajax.php:913
14651465
msgid "reCAPTCHA validation failed"
14661466
msgstr ""
14671467

@@ -1526,7 +1526,7 @@ msgstr ""
15261526

15271527
#: includes/api/class-weforms-forms-controller.php:797
15281528
#: includes/api/class-weforms-forms-controller.php:822
1529-
#: includes/class-ajax.php:346
1529+
#: includes/class-ajax.php:348
15301530
msgid "Could not create the form"
15311531
msgstr ""
15321532

@@ -1551,7 +1551,7 @@ msgid "Unable to delete form"
15511551
msgstr ""
15521552

15531553
#: includes/api/class-weforms-forms-controller.php:1099
1554-
#: includes/class-ajax.php:305
1554+
#: includes/class-ajax.php:307
15551555
msgid "No form ids provided!"
15561556
msgstr ""
15571557

@@ -1560,22 +1560,22 @@ msgid "form deleted successfully "
15601560
msgstr ""
15611561

15621562
#: includes/api/class-weforms-forms-controller.php:1235
1563-
#: includes/class-ajax.php:1140
1563+
#: includes/class-ajax.php:1142
15641564
msgid "No file found to import."
15651565
msgstr ""
15661566

15671567
#: includes/api/class-weforms-forms-controller.php:1249
1568-
#: includes/class-ajax.php:1153
1568+
#: includes/class-ajax.php:1155
15691569
msgid "The forms have been imported successfully!"
15701570
msgstr ""
15711571

15721572
#: includes/api/class-weforms-forms-controller.php:1257
1573-
#: includes/class-ajax.php:1155
1573+
#: includes/class-ajax.php:1157
15741574
msgid "Something went wrong importing the file."
15751575
msgstr ""
15761576

15771577
#: includes/api/class-weforms-forms-controller.php:1260
1578-
#: includes/class-ajax.php:1158
1578+
#: includes/class-ajax.php:1160
15791579
msgid "Invalid file or file size too big."
15801580
msgstr ""
15811581

@@ -1601,7 +1601,7 @@ msgid "data not exist"
16011601
msgstr ""
16021602

16031603
#: includes/api/class-weforms-log-controller.php:85
1604-
#: includes/class-ajax.php:1199
1604+
#: includes/class-ajax.php:1201
16051605
msgid "ago"
16061606
msgstr ""
16071607

@@ -1637,19 +1637,19 @@ msgstr ""
16371637
msgid "Invalid form id"
16381638
msgstr ""
16391639

1640-
#: includes/class-ajax.php:261
1640+
#: includes/class-ajax.php:263
16411641
msgid "Please provide a form name"
16421642
msgstr ""
16431643

1644-
#: includes/class-ajax.php:289 includes/class-ajax.php:444
1644+
#: includes/class-ajax.php:291 includes/class-ajax.php:446
16451645
msgid "No form id provided!"
16461646
msgstr ""
16471647

1648-
#: includes/class-ajax.php:733
1648+
#: includes/class-ajax.php:735
16491649
msgid "\"%s\" field requires a unique entry and \"%s\" has already been used."
16501650
msgstr ""
16511651

1652-
#: includes/class-ajax.php:744
1652+
#: includes/class-ajax.php:746
16531653
msgid "No form field was found."
16541654
msgstr ""
16551655

@@ -1749,7 +1749,7 @@ msgstr ""
17491749
msgid "The form couldn't be found."
17501750
msgstr ""
17511751

1752-
#: includes/class-frontend-form.php:133
1752+
#: includes/class-frontend-form.php:135
17531753
msgid "Open Form"
17541754
msgstr ""
17551755

@@ -2060,13 +2060,13 @@ msgid "Email Address"
20602060
msgstr ""
20612061

20622062
#: includes/fields/class-field-email.php:70
2063-
#: includes/fields/class-field-text.php:104
2063+
#: includes/fields/class-field-text.php:105
20642064
#: includes/fields/class-field-url.php:65
20652065
msgid "Unique Values Only"
20662066
msgstr ""
20672067

20682068
#: includes/fields/class-field-email.php:75
2069-
#: includes/fields/class-field-text.php:109
2069+
#: includes/fields/class-field-text.php:110
20702070
#: includes/fields/class-field-url.php:70
20712071
msgid ""
20722072
"Select this option to limit user input to unique values only. This will "
@@ -2454,9 +2454,15 @@ msgid "Thanks for contacting us! We will get in touch with you shortly."
24542454
msgstr ""
24552455

24562456
#: includes/functions.php:1103
2457-
#: includes/importer/class-importer-abstract.php:901
2458-
#: includes/importer/class-importer-gf.php:274
2459-
msgid "Submit Query"
2457+
#: includes/templates/class-template-admission-form.php:135
2458+
#: includes/templates/class-template-bug-report.php:180
2459+
#: includes/templates/class-template-comment-and-rating.php:56
2460+
#: includes/templates/class-template-employee-information.php:241
2461+
#: includes/templates/class-template-polling-form.php:47
2462+
#: includes/templates/class-template-product-order-form.php:140
2463+
#: includes/templates/class-template-restaurant-reservation.php:111
2464+
#: includes/templates/class-template-to-do-list.php:70
2465+
msgid "Submit"
24602466
msgstr ""
24612467

24622468
#: includes/functions.php:1119
@@ -2555,6 +2561,11 @@ msgstr[1] ""
25552561
msgid "You are not allowed."
25562562
msgstr ""
25572563

2564+
#: includes/importer/class-importer-abstract.php:901
2565+
#: includes/importer/class-importer-gf.php:274
2566+
msgid "Submit Query"
2567+
msgstr ""
2568+
25582569
#: includes/integrations/erp/class-integration-erp.php:13
25592570
msgid "WP ERP"
25602571
msgstr ""
@@ -2671,17 +2682,6 @@ msgstr ""
26712682
msgid "Payment Method"
26722683
msgstr ""
26732684

2674-
#: includes/templates/class-template-admission-form.php:135
2675-
#: includes/templates/class-template-bug-report.php:180
2676-
#: includes/templates/class-template-comment-and-rating.php:56
2677-
#: includes/templates/class-template-employee-information.php:241
2678-
#: includes/templates/class-template-polling-form.php:47
2679-
#: includes/templates/class-template-product-order-form.php:140
2680-
#: includes/templates/class-template-restaurant-reservation.php:111
2681-
#: includes/templates/class-template-to-do-list.php:70
2682-
msgid "Submit"
2683-
msgstr ""
2684-
26852685
#: includes/templates/class-template-blank.php:12
26862686
msgid "Blank Form"
26872687
msgstr ""

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "weForms",
33
"author": "BoldGrid",
4-
"version": "1.6.13",
4+
"version": "1.6.14",
55
"license": "GPL-2.0",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
 (0)