$val ) { if ( is_numeric( $text_val ) && ( is_string( $val ) || is_numeric( $val ) ) ) { $text_val = $val; } $text_val = __( $text_val, "smile" ); $checked = ''; if ( $value !== '' && (string)$val === (string)$value ) { $checked = ' checked="checked"'; } $output .= ' '; $n++; } return $output; }