WordPress.org

Make WordPress Core

Ticket #26626: upgrader.patch

File upgrader.patch, 492 bytes (added by DavidAnderson, 7 years ago)

1-line patch

  • trunk/wp-admin/includes/class-wp-upgrader.php

     
    152152                }
    153153
    154154                //We need a working directory
    155                 $working_dir = $upgrade_folder . basename($package, '.zip');
     155                $working_dir = $upgrade_folder . substr(md5($package), 0, 8);
    156156
    157157                // Clean up working directory
    158158                if ( $wp_filesystem->is_dir($working_dir) )