Code Duplication    Length = 9-9 lines in 2 locations

wp-admin/includes/upgrade.php 2 locations

@@ 2627-2635 (lines=9) @@
2624
	//$files = array('index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css');
2625
2626
	$theme_dir = @ opendir($default_dir);
2627
	if ($theme_dir) {
2628
		while(($theme_file = readdir( $theme_dir )) !== false) {
2629
			if (is_dir("$default_dir/$theme_file"))
2630
				continue;
2631
			if (! @copy("$default_dir/$theme_file", "$site_dir/$theme_file"))
2632
				return;
2633
			chmod("$site_dir/$theme_file", 0777);
2634
		}
2635
	}
2636
	@closedir($theme_dir);
2637
2638
	// Rewrite the theme header.
@@ 2661-2669 (lines=9) @@
2658
	}
2659
2660
	$images_dir = @ opendir("$default_dir/images");
2661
	if ($images_dir) {
2662
		while(($image = readdir($images_dir)) !== false) {
2663
			if (is_dir("$default_dir/images/$image"))
2664
				continue;
2665
			if (! @copy("$default_dir/images/$image", "$site_dir/images/$image"))
2666
				return;
2667
			chmod("$site_dir/images/$image", 0777);
2668
		}
2669
	}
2670
	@closedir($images_dir);
2671
}
2672