Skip to content

Commit d0de6b2

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. Built from https://develop.svn.wordpress.org/trunk@62059 git-svn-id: http://core.svn.wordpress.org/trunk@61341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 6b8653c commit d0de6b2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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
}

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-beta5-62058';
19+
$wp_version = '7.0-beta5-62059';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)