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

git-svn-id: http://svn.automattic.com/wordpress/trunk@17660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2011-04-19 05:54:01 +00:00
parent e2b914fbad
commit f4ccdcc188
1 changed files with 3 additions and 1 deletions

View File

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