PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8
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 +2 -10 6.256.8 View file →
@@ -46,17 +46,9 @@
46 46 public function show_on_form_builder( $name = '' ) {
47 47 $size = FrmField::get_option( $this->field, 'size' );
48 48 $max = FrmField::get_option( $this->field, 'max' );
49 49
50 - $html_atts = array(
51 - 'name' => $this->html_name( $name ),
52 - 'id' => $this->html_id(),
53 - 'rows' => $max,
54 - 'class' => 'dyn_default_value',
55 - 'placeholder' => FrmField::get_option( $this->field, 'placeholder' ),
56 - );
57 - echo '<textarea';
58 - FrmAppHelper::array_to_html_params( $html_atts, true );
50 + echo '<textarea name="' . esc_attr( $this->html_name( $name ) ) . '" rows="' . esc_attr( $max ) . '" id="' . esc_attr( $this->html_id() ) . '" class="dyn_default_value"';
59 51
60 52 if ( $size ) {
61 53 if ( is_numeric( $size ) ) {
62 54 $size .= 'px';
@@ -97,9 +89,9 @@
97 89 */
98 90 public function front_field_input( $args, $shortcode_atts ) {
99 91 $input_html = $this->get_field_input_html_hook( $this->field );
100 92 $this->add_aria_description( $args, $input_html );
101 - $rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : '';
93 + $rows = ( $this->field['max'] ) ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : '';
102 94
103 95 return '<textarea name="' . esc_attr( $args['field_name'] ) . '" id="' . esc_attr( $args['html_id'] ) . '" ' .
104 96 $rows . $input_html . '>' .
105 97 FrmAppHelper::esc_textarea( $this->field['value'] ) .