Skip to content

Commit ae4aa15

Browse files
committed
General: Remove unused dynamic $features variable from the constructor of class-ftp.php.
This fixes a PHP 8.2 deprecation, by removing the dynamic `$features` property from the ftp class as it is not used anywhere. Props kmurphyzuora, debarghyabanerjee, hellofromTonya, peter8nss. Fixes #62159. git-svn-id: https://develop.svn.wordpress.org/trunk@62059 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 85cc3de commit ae4aa15

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/wp-admin/includes/class-ftp.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ function __construct($port_mode=FALSE, $verb=FALSE, $le=FALSE) {
158158
$this->_features=array();
159159
$this->OS_local=FTP_OS_Unix;
160160
$this->OS_remote=FTP_OS_Unix;
161-
$this->features=array();
162161
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->OS_local=FTP_OS_Windows;
163162
elseif(strtoupper(substr(PHP_OS, 0, 3)) === 'MAC') $this->OS_local=FTP_OS_Mac;
164163
}

0 commit comments

Comments
 (0)