Code Duplication    Length = 9-9 lines in 2 locations

includes/acf/fields/page_link.php 1 location

@@ 103-111 (lines=9) @@
100
		
101
		
102
		// update $args
103
		if( !empty($field['post_type']) ) {
104
		
105
			$args['post_type'] = acf_get_array( $field['post_type'] );
106
			
107
		} else {
108
			
109
			$args['post_type'] = acf_get_post_types();
110
			
111
		}
112
		
113
		// create tax queries
114
		if( !empty($field['taxonomy']) ) {

includes/acf/fields/post_object.php 1 location

@@ 104-112 (lines=9) @@
101
		
102
		
103
		// update $args
104
		if( !empty($field['post_type']) ) {
105
		
106
			$args['post_type'] = acf_get_array( $field['post_type'] );
107
			
108
		} else {
109
			
110
			$args['post_type'] = acf_get_post_types();
111
			
112
		}
113
114
		
115
		// create tax queries