From b37514a7fd7dc9e770e7b26235a32ab7c0d0674f Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 2 Nov 2011 12:16:47 +0000 Subject: [PATCH] Tabs > Spaces. Props SergeyBiryukov. See #14999 git-svn-id: https://develop.svn.wordpress.org/trunk@19115 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-upgrader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 0a4e495144..dda56d8e57 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -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);