Tabs > Spaces. Props SergeyBiryukov. See #14999

git-svn-id: https://develop.svn.wordpress.org/trunk@19115 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2011-11-02 12:16:47 +00:00
parent 71aa0059d0
commit b37514a7fd
1 changed files with 2 additions and 2 deletions

View File

@ -194,8 +194,8 @@ class WP_Upgrader {
$source = trailingslashit($source) . trailingslashit($source_files[0]);
elseif ( count($source_files) == 0 )
return new WP_Error('incompatible_archive', $this->strings['incompatible_archive']); //There are no files?
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.
$source = trailingslashit($source);
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.
$source = trailingslashit($source);
//Hook ability to change the source file location..
$source = apply_filters('upgrader_source_selection', $source, $remote_source, $this);