Do not delete local package files in WP_Upgrader. Props joelhardi. Fixes #14963

git-svn-id: https://develop.svn.wordpress.org/trunk@17660 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2011-04-19 05:54:01 +00:00
parent cff5b0ac2a
commit 7314d2ff87
1 changed files with 3 additions and 1 deletions

View File

@ -302,8 +302,10 @@ class WP_Upgrader {
return $download;
}
$delete_package = ($download != $package); // Do not delete a "local" file
//Unzip's the file into a temporary directory
$working_dir = $this->unpack_package( $download );
$working_dir = $this->unpack_package( $download, $delete_package );
if ( is_wp_error($working_dir) ) {
$this->skin->error($working_dir);
$this->skin->after();