WordPress.org

Make WordPress Core

Ticket #26626: upgrader.2.patch

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

Updated 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(basename($package, '.zip'), 0, 32);
    156156
    157157                // Clean up working directory
    158158                if ( $wp_filesystem->is_dir($working_dir) )