WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/19/2011 05:54:01 AM (9 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r17591 r17660  
    303303        }
    304304
     305        $delete_package = ($download != $package); // Do not delete a "local" file
     306
    305307        //Unzip's the file into a temporary directory
    306         $working_dir = $this->unpack_package( $download );
     308        $working_dir = $this->unpack_package( $download, $delete_package );
    307309        if ( is_wp_error($working_dir) ) {
    308310            $this->skin->error($working_dir);
Note: See TracChangeset for help on using the changeset viewer.