PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.18
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.18
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 +2 -13 6.25.1 → 6.18 View file →
@@ -278,9 +278,9 @@
278 278 echo '<select name="' . esc_attr( $this->html_name ) . '">';
279 279 echo '<option value="">' . esc_html( $this->blank_option_label ) . '</option>';
280 280
281 281 if ( ! empty( $this->options ) ) {
282 - $truncate = $this->truncate ?? 25;
282 + $truncate = isset( $this->truncate ) ? $this->truncate : 25;
283 283
284 284 foreach ( $this->options as $key => $value ) {
285 285 if ( $value == '' ) {
286 286 continue;
@@ -286,24 +286,13 @@
286 286 continue;
287 287 }
288 288
289 289 $option = $this->get_single_field_option( $key, $value );
290 - $option->print_single_option( $this->value, $truncate, $this->use_value_as_label_in_dropdown() );
290 + $option->print_single_option( $this->value, $truncate );
291 291 }
292 292 }
293 293
294 294 echo '</select>';
295 - }
296 -
297 - /**
298 - * Whether to use the field value as the option label in the dropdown when the label is empty.
299 - *
300 - * @since 6.25.1
301 - *
302 - * @return bool
303 - */
304 - protected function use_value_as_label_in_dropdown() {
305 - return false;
306 295 }
307 296
308 297 /**
309 298 * Get an instance of FrmFieldOption