Opened 5 years ago
Closed 5 years ago
#51029 closed defect (bug) (fixed)
Typo in variable name causes warning from fclose()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.5.1 | Priority: | normal |
Severity: | minor | Version: | 5.5 |
Component: | Filesystem API | Keywords: | commit fixed-major |
Focuses: | Cc: |
Description
PHP warning emitted when get_contents() calls fclose($temphangle) (should be $temphandle) in class-wp-filesystem-ftpext.php during ftp self-update.
PHP message: PHP Warning: fclose() expects parameter 1 to be resource, null given in /var/www/user-rw/splendid-things.co.uk/wp/site/wp-admin/includes/class-wp-filesystem-ftpext.php on line 159', referer: https://splendid-things.co.uk/wp-admin/network/update.php?action=update-selected-themes&themes=twentyeleven%2Ctwentyfifteen%2Ctwentyfourteen%2Ctwentynineteen%2Ctwentyten%2Ctwentythirteen%2Ctwentytwelve%2Ctwentytwenty&_wpnonce=f7cde49708
Change History (5)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to WordPress Trac! Thanks for the report.
This is indeed a regression in 5.5, introduced in [48089] / #49542.