Make WordPress Core


Ignore:
Timestamp:
08/28/2011 05:51:38 AM (13 years ago)
Author:
dd32
Message:

Only clean up the uploaded files after a successful (or failed) install. Allows files to persist past the FTP credential screen. See #18182

File:
1 edited

Legend:

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

    r18614 r18616  
    400400                    ));
    401401
     402        if ( ! $this->result || is_wp_error($this->result) )
     403            return $this->result;
     404
    402405        // Force refresh of plugin update information
    403406        delete_site_transient('update_plugins');
    404407
     408        return true;
    405409    }
    406410
     
    647651        delete_site_transient('update_themes');
    648652
    649         if ( empty($result['destination_name']) )
    650             return false;
    651         else
    652             return $result['destination_name'];
     653        return true;
    653654    }
    654655
Note: See TracChangeset for help on using the changeset viewer.