diff --git a/upgrade.php src/wp-admin/includes/upgrade.php
index 85439b4..c03678e 100755
old
|
new
|
function make_site_theme_from_default( $theme_name, $template ) { |
2953 | 2953 | // Copy files from the default theme to the site theme. |
2954 | 2954 | //$files = array('index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css'); |
2955 | 2955 | |
2956 | | $theme_dir = @ opendir( $default_dir ); |
| 2956 | $theme_dir = @opendir( $default_dir ); |
2957 | 2957 | if ( $theme_dir ) { |
2958 | 2958 | while ( ( $theme_file = readdir( $theme_dir ) ) !== false ) { |
2959 | 2959 | if ( is_dir( "$default_dir/$theme_file" ) ) { |
… |
… |
function make_site_theme_from_default( $theme_name, $template ) { |
2995 | 2995 | return false; |
2996 | 2996 | } |
2997 | 2997 | |
2998 | | $images_dir = @ opendir( "$default_dir/images" ); |
| 2998 | $images_dir = @opendir( "$default_dir/images" ); |
2999 | 2999 | if ( $images_dir ) { |
3000 | 3000 | while ( ( $image = readdir( $images_dir ) ) !== false ) { |
3001 | 3001 | if ( is_dir( "$default_dir/images/$image" ) ) { |