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 +10 -2 6.4.26.21 View file →
@@ -46,9 +46,17 @@
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 - echo '<textarea name="' . esc_attr( $this->html_name( $name ) ) . '" rows="' . esc_attr( $max ) . '" id="' . esc_attr( $this->html_id() ) . '" class="dyn_default_value"';
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 );
51 59
52 60 if ( $size ) {
53 61 if ( is_numeric( $size ) ) {
54 62 $size .= 'px';
@@ -89,9 +97,9 @@
89 97 */
90 98 public function front_field_input( $args, $shortcode_atts ) {
91 99 $input_html = $this->get_field_input_html_hook( $this->field );
92 100 $this->add_aria_description( $args, $input_html );
93 - $rows = ( $this->field['max'] ) ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : '';
101 + $rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : '';
94 102
95 103 return '<textarea name="' . esc_attr( $args['field_name'] ) . '" id="' . esc_attr( $args['html_id'] ) . '" ' .
96 104 $rows . $input_html . '>' .
97 105 FrmAppHelper::esc_textarea( $this->field['value'] ) .