#8563 closed defect (bug) (fixed)
Undefined variable: download_file
| Reported by: | matthewh84 | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 2.7 |
| Component: | Plugins | Version: | 2.7 |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [10176]) Remove unneeded lines. Props matthewh84. fixes #8563