PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.13
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.13
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/fields/FrmFieldEmail.php +1 -10 6.356.13 View file →
@@ -9,9 +9,8 @@
9 9 class FrmFieldEmail extends FrmFieldType {
10 10
11 11 /**
12 12 * @var string
13 - *
14 13 * @since 3.0
15 14 */
16 15 protected $type = 'email';
17 16
@@ -16,9 +15,8 @@
16 15 protected $type = 'email';
17 16
18 17 /**
19 18 * @var bool
20 - *
21 19 * @since 3.0
22 20 */
23 21 protected $holds_email_values = true;
24 22
@@ -45,15 +43,10 @@
45 43 *
46 44 * @return array
47 45 */
48 46 public function validate( $args ) {
49 - if ( ! $args['value'] ) {
50 - return array();
51 - }
52 -
53 47 $errors = array();
54 -
55 - if ( str_contains( $args['value'], '.@' ) || ! is_email( $args['value'] ) ) {
48 + if ( $args['value'] != '' && ! is_email( $args['value'] ) ) {
56 49 $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $this->field, 'invalid' );
57 50 }
58 51
59 52 return $errors;
@@ -60,10 +53,8 @@
60 53 }
61 54
62 55 /**
63 56 * @since 4.0.04
64 - *
65 - * @param array|string $value Email value passed by reference.
66 57 *
67 58 * @return void
68 59 */
69 60 public function sanitize_value( &$value ) {