PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.4
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.4
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 -19 6.35.4 View file →
@@ -19,16 +19,8 @@
19 19 * @since 3.0
20 20 */
21 21 protected $holds_email_values = true;
22 22
23 - /**
24 - * @var bool
25 - */
26 - protected $array_allowed = false;
27 -
28 - /**
29 - * @return bool[]
30 - */
31 23 protected function field_settings_for_type() {
32 24 return array(
33 25 'size' => true,
34 26 'clear_on_focus' => true,
@@ -34,17 +26,6 @@
34 26 'clear_on_focus' => true,
35 27 'format' => true,
36 28 'invalid' => true,
37 29 );
38 - }
39 -
40 - public function validate( $args ) {
41 - $errors = parent::validate( $args );
42 - $max_length = intval( FrmField::get_option( $this->field, 'max' ) );
43 -
44 - if ( $max_length && strlen( $args['value'] ) > $max_length ) {
45 - $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $this->field, 'invalid' );
46 - }
47 -
48 - return $errors;
49 30 }
50 31 }