Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#44489 new defect (bug)

Use of deprecated each() function

Reported by: sterndata Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Filesystem API Keywords: has-patch
Focuses: Cc:


Wordpress still uses the function each() which is deprecated in PHP 7.2.


wp-admin\includes\class-ftp.php line 778

(reported at https://wordpress.org/support/topic/function-each-deprecated-in-php-7-2/)

Attachments (2)

patch1.diff (497 bytes) - added by itowhid06 3 weeks ago.
patch2.diff (581 bytes) - added by itowhid06 3 weeks ago.

Download all attachments as: .zip

Change History (5)

#1 @SergeyBiryukov
3 weeks ago

  • Component changed from General to Filesystem API
  • Milestone changed from Awaiting Review to 5.0

Related: #16026

#2 @itowhid06
3 weeks ago

It seems this library hasn't been updated in a while. that's why I'm proposing a patch(patch1.diff). Also it seems in fput() function, the variable $rest is being used without being passed as parameter(patch2.diff).

Last edited 3 weeks ago by itowhid06 (previous) (diff)

3 weeks ago

3 weeks ago

#3 @itowhid06
3 weeks ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.