WordPress.org

Make WordPress Core

Ticket #10140: update-core.diff

File update-core.diff, 481 bytes (added by takayukister, 5 years ago)
  • wp-admin/includes/update-core.php

     
    229229        $result = copy_dir($from . '/wordpress', $to); 
    230230        if ( is_wp_error($result) ) { 
    231231                $wp_filesystem->delete($maintenance_file); 
    232                 $wp_filesystem->delete($working_dir, true); 
     232                $wp_filesystem->delete($from, true); 
    233233                return $result; 
    234234        } 
    235235