#8563 closed defect (bug) (fixed)
Undefined variable: download_file
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.7 | Priority: | low |
| Severity: | trivial | Version: | 2.7 |
| Component: | Plugins | Keywords: | |
| Focuses: | Cc: |
Description
/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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [10176]) Remove unneeded lines. Props matthewh84. fixes #8563