Code Duplication    Length = 5-5 lines in 2 locations

includes/acf/api/api-field.php 1 location

@@ 607-611 (lines=5) @@
604
		
605
		
606
	// copy across the $setting value
607
	if( isset($field[ $setting['name'] ]) ) {
608
		
609
		$setting['value'] = $field[ $setting['name'] ];
610
		
611
	}
612
	
613
	
614
	// render

includes/acf/fields/radio.php 1 location

@@ 115-119 (lines=5) @@
112
		if( !empty($field['choices']) ) {
113
			
114
			// select first choice if value is not a valid choice
115
			if( !isset($field['choices'][ $field['value'] ]) ) {
116
				
117
				$field['value'] = key($field['choices']);
118
				
119
			}
120
			
121
			
122
			// foreach choices