PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.0
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/FrmFieldText.php +0 -21 6.265.0 View file →
@@ -9,9 +9,8 @@
9 9 class FrmFieldText extends FrmFieldType {
10 10
11 11 /**
12 12 * @var string
13 - *
14 13 * @since 3.0
15 14 */
16 15 protected $type = 'text';
17 16
@@ -16,21 +15,12 @@
16 15 protected $type = 'text';
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
25 - /**
26 - * @var bool
27 - */
28 - protected $array_allowed = false;
29 -
30 - /**
31 - * @return bool[]
32 - */
33 23 protected function field_settings_for_type() {
34 24 return array(
35 25 'size' => true,
36 26 'clear_on_focus' => true,
@@ -36,17 +26,6 @@
36 26 'clear_on_focus' => true,
37 27 'format' => true,
38 28 'invalid' => true,
39 29 );
40 - }
41 -
42 - public function validate( $args ) {
43 - $errors = parent::validate( $args );
44 - $max_length = intval( FrmField::get_option( $this->field, 'max' ) );
45 -
46 - if ( $max_length && FrmAppHelper::mb_function( array( 'mb_strlen', 'strlen' ), array( $args['value'] ) ) > $max_length ) {
47 - $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $this->field, 'invalid' );
48 - }
49 -
50 - return $errors;
51 30 }
52 31 }