From 57e22679049722dabec3b01cd311832adcefd3ce Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 7 Aug 2008 19:15:04 +0000 Subject: [PATCH] Fix bad bracketing in unzip_file() git-svn-id: http://svn.automattic.com/wordpress/trunk@8580 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;