Remove unneeded lines. Props matthewh84. fixes #8563

git-svn-id: https://develop.svn.wordpress.org/trunk@10176 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-10 19:43:24 +00:00
parent b3e9085058
commit bd6ba8607b

View File

@ -840,9 +840,6 @@ function wp_install_plugin_local_package($package, $feedback = '') {
if ( empty($package) )
return new WP_Error('no_package', __('Install package not available.'));
if ( is_wp_error($download_file) )
return new WP_Error('download_failed', __('Download failed.'), $download_file->get_error_message());
$working_dir = $content_dir . 'upgrade/' . basename($package, '.zip');
// Clean up working directory