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