PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.13
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.13
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/FrmFieldValueSelector.php +1 -26 6.256.13 View file →
@@ -74,17 +74,8 @@
74 74 */
75 75 protected $db_row;
76 76
77 77 /**
78 - * Field dropdowns will truncate at 25 characters by default.
79 - *
80 - * @var int|null
81 - *
82 - * @since 6.16.2
83 - */
84 - protected $truncate;
85 -
86 - /**
87 78 * FrmFieldValueSelector constructor
88 79 *
89 80 * @param int|string $field_id
90 81 */
@@ -91,9 +82,8 @@
91 82 public function __construct( $field_id, $args ) {
92 83 $this->set_html_name( $args );
93 84 $this->set_value( $args );
94 85 $this->set_source( $args );
95 - $this->set_truncate( $args );
96 86
97 87 $this->field_id = (int) $field_id;
98 88 if ( $this->field_id === 0 ) {
99 89 return;
@@ -206,21 +196,8 @@
206 196 }
207 197 }
208 198
209 199 /**
210 - * @since 6.16.2
211 - *
212 - * @param array $args
213 - *
214 - * @return void
215 - */
216 - protected function set_truncate( $args ) {
217 - if ( isset( $args['truncate'] ) && is_numeric( $args['truncate'] ) ) {
218 - $this->truncate = (int) $args['truncate'];
219 - }
220 - }
221 -
222 - /**
223 200 * Check if object has any options
224 201 *
225 202 * @since 2.03.05
226 203 *
@@ -278,10 +255,8 @@
278 255 echo '<select name="' . esc_attr( $this->html_name ) . '">';
279 256 echo '<option value="">' . esc_html( $this->blank_option_label ) . '</option>';
280 257
281 258 if ( ! empty( $this->options ) ) {
282 - $truncate = $this->truncate ?? 25;
283 -
284 259 foreach ( $this->options as $key => $value ) {
285 260 if ( $value == '' ) {
286 261 continue;
287 262 }
@@ -286,9 +261,9 @@
286 261 continue;
287 262 }
288 263
289 264 $option = $this->get_single_field_option( $key, $value );
290 - $option->print_single_option( $this->value, $truncate );
265 + $option->print_single_option( $this->value, 25 );
291 266 }
292 267 }
293 268
294 269 echo '</select>';