PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.21
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.21
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/FrmFieldTextarea.php +1 -4 6.306.21 View file →
@@ -9,9 +9,8 @@
9 9 class FrmFieldTextarea extends FrmFieldType {
10 10
11 11 /**
12 12 * @var string
13 - *
14 13 * @since 3.0
15 14 */
16 15 protected $type = 'textarea';
17 16
@@ -61,9 +60,8 @@
61 60 if ( $size ) {
62 61 if ( is_numeric( $size ) ) {
63 62 $size .= 'px';
64 63 }
65 -
66 64 $style = 'width:' . $size . ';';
67 65 echo ' style="' . esc_attr( $style ) . '"';
68 66 }
69 67
@@ -73,8 +71,9 @@
73 71 }
74 72
75 73 protected function prepare_display_value( $value, $atts ) {
76 74 FrmFieldsHelper::run_wpautop( $atts, $value );
75 +
77 76 return $value;
78 77 }
79 78
80 79 /**
@@ -100,12 +99,10 @@
100 99 $input_html = $this->get_field_input_html_hook( $this->field );
101 100 $this->add_aria_description( $args, $input_html );
102 101 $rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : '';
103 102
104 - // phpcs:disable Generic.WhiteSpace.ScopeIndent
105 103 return '<textarea name="' . esc_attr( $args['field_name'] ) . '" id="' . esc_attr( $args['html_id'] ) . '" ' .
106 104 $rows . $input_html . '>' .
107 105 FrmAppHelper::esc_textarea( $this->field['value'] ) .
108 106 '</textarea>';
109 - // phpcs:enable Generic.WhiteSpace.ScopeIndent
110 107 }
111 108 }