'wp-images/smilies',
'wp-images/wp-small.png',
'wp-images/wpminilogo.png',
-'wp.php',
-'wp-content/themes/default/attachment.php',
-'wp-content/themes/default/images/kubrickbg.jpg',
-'wp-content/plugins/markdown.php',
-'wp-content/plugins/textile1.php',
+'wp.php'
);
/**
$result = copy_dir($from . '/wordpress', $to);
if ( is_wp_error($result) ) {
$wp_filesystem->delete($maintenance_file);
- //$wp_filesystem->delete($working_dir, true); //TODO: Uncomment? This DOES mean that the new files are available in the upgrade folder if it fails.
+ $wp_filesystem->delete($working_dir, true);
return $result;
}
$wp_filesystem->delete($from, true);
// Force refresh of update information
- delete_option('update_core');
+ if ( function_exists('delete_transient') )
+ delete_transient('update_core');
+ else
+ delete_option('update_core');
// Remove maintenance file, we're done.
$wp_filesystem->delete($maintenance_file);