Make WordPress Core

Changeset 62059


Ignore:
Timestamp:
03/19/2026 09:30:41 AM (9 days ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-ftp.php

    r59846 r62059  
    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;
Note: See TracChangeset for help on using the changeset viewer.