From 80a4ec8e37295b5f3b1ac1ef8532b65e35555c8d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 7 Aug 2008 19:15:04 +0000 Subject: [PATCH] Fix bad bracketing in unzip_file() git-svn-id: https://develop.svn.wordpress.org/trunk@8580 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/file.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 67b0483991..2cae7da034 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -384,10 +384,11 @@ function unzip_file($file, $to) { } // We've made sure the folders are there, so let's extract the file now: - if ( ! $file['folder'] ) + if ( ! $file['folder'] ) { if ( !$fs->put_contents( $to . $file['filename'], $file['content']) ) return new WP_Error('copy_failed', __('Could not copy file'), $to . $file['filename']); $fs->chmod($to . $file['filename'], 0644); + } } return true;