PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.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 +1 -11 6.266.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,
@@ -42,9 +32,9 @@
42 32 public function validate( $args ) {
43 33 $errors = parent::validate( $args );
44 34 $max_length = intval( FrmField::get_option( $this->field, 'max' ) );
45 35
46 - if ( $max_length && FrmAppHelper::mb_function( array( 'mb_strlen', 'strlen' ), array( $args['value'] ) ) > $max_length ) {
36 + if ( $max_length && strlen( $args['value'] ) > $max_length ) {
47 37 $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $this->field, 'invalid' );
48 38 }
49 39
50 40 return $errors;