From 046c47f1b0b4ef30fb1aee2e57357c55870fb92d Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 10 Dec 2008 19:43:24 +0000 Subject: [PATCH] Remove unneeded lines. Props matthewh84. fixes #8563 git-svn-id: http://svn.automattic.com/wordpress/trunk@10176 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin-install.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index 42a64e8f01..57e24bd737 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -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