[wp-trac] [WordPress Trac] #55307: After upgrading Debian, WordPress sites no longer update through FTP
WordPress Trac
noreply at wordpress.org
Sat Mar 5 20:36:57 UTC 2022
#55307: After upgrading Debian, WordPress sites no longer update through FTP
-----------------------------+------------------------------
Reporter: zippy1970 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: trunk
Severity: major | Resolution:
Keywords: needs-testing | Focuses:
-----------------------------+------------------------------
Comment (by costdev):
In
`WP_Filesystem_FTPext::exists()`[https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/exists/
Docs], it calls `$list = ftp_nlist( $this->link, $file )`, which returns
`false`.
The result is checked against `empty( $list ) && $this->is_dir( $file )`,
which passes the first condition and fails the second.
Then the `WP_Filesystem_FTPext::exists()` returns `! empty( $list );`.
`! false` === `true` === the file exists, so this shouldn't be causing the
problem here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55307#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list