Version Description
- Fix: Currency field amount converted to 1 in specific cases
Download this release
Release Info
Developer | jdailey |
Plugin | Forminator Payment, Quiz and Contact Form Plugin |
Version | 1.7.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.0 to 1.7.0.1
- forminator.php +2 -2
- languages/forminator.pot +2 -2
- library/fields/stripe.php +6 -2
- readme.txt +6 -2
forminator.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Forminator
|
4 |
-
* Version: 1.7.0
|
5 |
* Plugin URI: https://premium.wpmudev.org/project/forminator/
|
6 |
* Description: Capture user information (as detailed as you like), engage users with interactive polls that show real-time results and graphs, “no wrong answer” Facebook-style quizzes and knowledge tests.
|
7 |
* Author: WPMU DEV
|
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'FORMINATOR_VERSION' ) ) {
|
37 |
-
define( 'FORMINATOR_VERSION', '1.7.0' );
|
38 |
}
|
39 |
|
40 |
if ( ! defined( 'FORMINATOR_SUI_VERSION' ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Forminator
|
4 |
+
* Version: 1.7.0.1
|
5 |
* Plugin URI: https://premium.wpmudev.org/project/forminator/
|
6 |
* Description: Capture user information (as detailed as you like), engage users with interactive polls that show real-time results and graphs, “no wrong answer” Facebook-style quizzes and knowledge tests.
|
7 |
* Author: WPMU DEV
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'FORMINATOR_VERSION' ) ) {
|
37 |
+
define( 'FORMINATOR_VERSION', '1.7.0.1' );
|
38 |
}
|
39 |
|
40 |
if ( ! defined( 'FORMINATOR_SUI_VERSION' ) ) {
|
languages/forminator.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Forminator package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Forminator 1.7.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/forminator\n"
|
7 |
-
"POT-Creation-Date: 2019-05-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the Forminator package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Forminator 1.7.0.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/forminator\n"
|
7 |
+
"POT-Creation-Date: 2019-05-29 15:16:03+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
library/fields/stripe.php
CHANGED
@@ -580,7 +580,6 @@ class Forminator_Stripe extends Forminator_Field {
|
|
580 |
$amount = self::get_property( 'amount', $field, '0' );
|
581 |
$amount_variable = self::get_property( 'variable', $field, '' );
|
582 |
|
583 |
-
|
584 |
if ( 'fixed' === $amount_type ) {
|
585 |
$payment_amount = $amount;
|
586 |
} else {
|
@@ -601,11 +600,15 @@ class Forminator_Stripe extends Forminator_Field {
|
|
601 |
if ( isset( $fields_collection[ $form_field['type'] ] ) ) {
|
602 |
/** @var Forminator_Field $field_object */
|
603 |
$field_object = $fields_collection[ $form_field['type'] ];
|
604 |
-
|
|
|
|
|
|
|
605 |
}
|
606 |
}
|
607 |
|
608 |
}
|
|
|
609 |
}
|
610 |
|
611 |
}
|
@@ -625,6 +628,7 @@ class Forminator_Stripe extends Forminator_Field {
|
|
625 |
* @param array $submitted_data
|
626 |
* @param array $pseudo_submitted_data
|
627 |
*/
|
|
|
628 |
$payment_amount = apply_filters( 'forminator_field_stripe_payment_amount', $payment_amount, $field, $custom_form, $submitted_data, $pseudo_submitted_data );
|
629 |
|
630 |
return $payment_amount;
|
580 |
$amount = self::get_property( 'amount', $field, '0' );
|
581 |
$amount_variable = self::get_property( 'variable', $field, '' );
|
582 |
|
|
|
583 |
if ( 'fixed' === $amount_type ) {
|
584 |
$payment_amount = $amount;
|
585 |
} else {
|
600 |
if ( isset( $fields_collection[ $form_field['type'] ] ) ) {
|
601 |
/** @var Forminator_Field $field_object */
|
602 |
$field_object = $fields_collection[ $form_field['type'] ];
|
603 |
+
|
604 |
+
$field_id = $form_field['element_id'];
|
605 |
+
$submitted_field_data = isset( $submitted_data[ $field_id ] ) ? $submitted_data[ $field_id ] : null;
|
606 |
+
$payment_amount = $field_object->get_calculable_value( $submitted_field_data, $form_field );
|
607 |
}
|
608 |
}
|
609 |
|
610 |
}
|
611 |
+
|
612 |
}
|
613 |
|
614 |
}
|
628 |
* @param array $submitted_data
|
629 |
* @param array $pseudo_submitted_data
|
630 |
*/
|
631 |
+
|
632 |
$payment_amount = apply_filters( 'forminator_field_stripe_payment_amount', $payment_amount, $field, $custom_form, $submitted_data, $pseudo_submitted_data );
|
633 |
|
634 |
return $payment_amount;
|
readme.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
=== Forminator Contact Form, Poll & Quiz Builder ===
|
2 |
Plugin Name: Forminator Contact Form, Poll & Quiz Builder
|
3 |
-
Version: 1.7.0
|
4 |
Author: WPMU DEV
|
5 |
Author URI: https://premium.wpmudev.org/
|
6 |
Contributors: WPMUDEV
|
7 |
Tags: form, contact form, survey, quiz, email, feedback, custom forms, form builder, online form, form maker
|
8 |
Requires at least: 4.6
|
9 |
Tested up to: 5.2
|
10 |
-
Stable tag: 1.7.0
|
11 |
Requires PHP: 5.2.4
|
12 |
License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
13 |
|
@@ -128,6 +128,10 @@ Forminator currently includes integration with the Stripe payment gateway and Pa
|
|
128 |
|
129 |
== Changelog ==
|
130 |
|
|
|
|
|
|
|
|
|
131 |
= 1.7.0 =
|
132 |
|
133 |
* Add: Stripe Payment gateway
|
1 |
=== Forminator Contact Form, Poll & Quiz Builder ===
|
2 |
Plugin Name: Forminator Contact Form, Poll & Quiz Builder
|
3 |
+
Version: 1.7.0.1
|
4 |
Author: WPMU DEV
|
5 |
Author URI: https://premium.wpmudev.org/
|
6 |
Contributors: WPMUDEV
|
7 |
Tags: form, contact form, survey, quiz, email, feedback, custom forms, form builder, online form, form maker
|
8 |
Requires at least: 4.6
|
9 |
Tested up to: 5.2
|
10 |
+
Stable tag: 1.7.0.1
|
11 |
Requires PHP: 5.2.4
|
12 |
License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
13 |
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
+
= 1.7.0.1 =
|
132 |
+
|
133 |
+
* Fix: Currency field amount converted to 1 in specific cases
|
134 |
+
|
135 |
= 1.7.0 =
|
136 |
|
137 |
* Add: Stripe Payment gateway
|