mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Tabs > Spaces. Props SergeyBiryukov. See #14999
git-svn-id: http://svn.automattic.com/wordpress/trunk@19115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
366db8c10b
commit
16697d503e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user