diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index d88bc5ccfa..09d344dd1e 100644
|
a
|
b
|
if ( PHP_VERSION_ID < 80100 ) {
|
| 5307 | 5307 | * @return string HTML attribute or empty string. |
| 5308 | 5308 | */ |
| 5309 | 5309 | function __checked_selected_helper( $helper, $current, $display, $type ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore |
| 5310 | | |
| 5311 | | $helper = is_array( $helper ) ? ( isset( $helper[0] ) ? sanitize_text_field( $helper[0] ) : '' ) : sanitize_text_field( $helper ); |
| 5312 | | $current = is_array( $current ) ? ( isset( $current[0] ) ? sanitize_text_field( $current[0] ) : '' ) : sanitize_text_field( $current ); |
| 5313 | | |
| 5314 | 5310 | if ( (string) $helper === (string) $current ) { |
| 5315 | 5311 | $result = " $type='$type'"; |
| 5316 | 5312 | } else { |