Remove unneeded lines. Props matthewh84. fixes #8563
git-svn-id: http://svn.automattic.com/wordpress/trunk@10176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0eede66e7f
commit
046c47f1b0
|
@ -840,9 +840,6 @@ function wp_install_plugin_local_package($package, $feedback = '') {
|
||||||
if ( empty($package) )
|
if ( empty($package) )
|
||||||
return new WP_Error('no_package', __('Install package not available.'));
|
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');
|
$working_dir = $content_dir . 'upgrade/' . basename($package, '.zip');
|
||||||
|
|
||||||
// Clean up working directory
|
// Clean up working directory
|
||||||
|
|
Loading…
Reference in New Issue