WordPress.org

Make WordPress Core

Ticket #14999: 14999.minor-whitespace-fix.patch

File 14999.minor-whitespace-fix.patch, 1.0 KB (added by SergeyBiryukov, 3 years ago)
  • wp-admin/includes/class-wp-upgrader.php

     
    194194                        $source = trailingslashit($source) . trailingslashit($source_files[0]); 
    195195                elseif ( count($source_files) == 0 ) 
    196196                        return new WP_Error('incompatible_archive', $this->strings['incompatible_archive']); //There are no files? 
    197         else //Its only a single file, The upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename. 
    198             $source = trailingslashit($source); 
     197                else //Its only a single file, The upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename. 
     198                        $source = trailingslashit($source); 
    199199 
    200200                //Hook ability to change the source file location.. 
    201201                $source = apply_filters('upgrader_source_selection', $source, $remote_source, $this);