Fix a small typo.
git-svn-id: https://develop.svn.wordpress.org/trunk@20070 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
31e6f087d7
commit
1cbc983342
@ -628,7 +628,7 @@ function _unzip_file_ziparchive($file, $to, $needed_dirs = array() ) {
|
||||
return new WP_Error('extract_failed', __('Could not extract file from archive.'), $info['name']);
|
||||
|
||||
if ( ! $wp_filesystem->put_contents( $to . $info['name'], $contents, FS_CHMOD_FILE) )
|
||||
return new WP_Error('copy_failed', __('Could not copy file.'), $to . $info['filename']);
|
||||
return new WP_Error('copy_failed', __('Could not copy file.'), $to . $info['name']);
|
||||
}
|
||||
|
||||
$z->close();
|
||||
|
Loading…
Reference in New Issue
Block a user