Code Duplication    Length = 3-3 lines in 2 locations

classes/class-tours.php 1 location

@@ 557-559 (lines=3) @@
554
555
		//TODO Test These
556
		//Setup some default for use in the import
557
		if(false !== $importable_content && (in_array('itinerary_gallery',$importable_content) || in_array('gallery',$importable_content) || in_array('banner_image',$importable_content) || in_array('featured_image',$importable_content))){
558
			$this->find_attachments($id);
559
		}
560
        //Set the featured image
561
        //TODO Test These
562
        if(false !== $importable_content && in_array('featured_image',$importable_content)){

classes/class-accommodation.php 1 location

@@ 627-629 (lines=3) @@
624
	        	}
625
	        }
626
	        //Setup some default for use in the import
627
	        if(false !== $importable_content && (in_array('gallery',$importable_content) || in_array('banner_image',$importable_content) || in_array('featured_image',$importable_content))){
628
				$this->find_attachments($id);
629
			}
630
631
	        //Set the team member if it is there
632
	        if(post_type_exists('team') && false !== $team_members && '' !== $team_members){