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:
parent
e2b914fbad
commit
f4ccdcc188
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue