| @@ -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 |