WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31811, comment 6


Ignore:
Timestamp:
03/31/2015 02:32:17 AM (6 years ago)
Author:
afragen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31811, comment 6

    initial v1  
    55                // We need a working directory - Strip off any .tmp or .zip suffixes
    66                // If empty after stripping create 'temp' name
    7                 $working_dir_stripped = basename( basename( $package, '.tmp' ), '.zip' );
    8                 if ( empty( $working_dir_stripped ) ) {
    9                         $working_dir_stripped = 'temp';
     7                $package_stripped = basename( basename( $package, '.tmp' ), '.zip' );
     8                if ( empty( $package_stripped ) ) {
     9                        $package_stripped = 'temp';
    1010                }
    1111               
    12                 $working_dir = $upgrade_folder . $working_dir_stripped;
     12                $working_dir = $upgrade_folder . $package_stripped;
    1313
    1414}}}