[wp-trac] [WordPress Trac] #8563: Undefined variable: download_file
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 10 19:25:47 GMT 2008
#8563: Undefined variable: download_file
------------------------+---------------------------------------------------
Reporter: matthewh84 | Owner:
Type: defect | Status: new
Priority: low | Milestone: 2.7
Component: Plugins | Version: 2.7
Severity: trivial | Keywords:
------------------------+---------------------------------------------------
/wp-admin/includes/plugin-install.php
r10175
Notice: Undefined variable: download_file in C:\xampplite\htdocs\wptrunk
\wp-admin\includes\plugin-install.php on line 843
Line 843 has
if ( is_wp_error($download_file) )
return new WP_Error('download_failed', __('Download failed.'),
$download_file->get_error_message());
Should either be
if ( isset($download_file) && is_wp_error($download_file) )
or removed entirely if it isn't needed. I think it isn't needed at all,
but I'm not positive on that.
--
Ticket URL: <http://trac.wordpress.org/ticket/8563>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list