WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#50287 new defect (bug)

FS_METHOD=ssh2 breaks some plugins

Reported by: denkoren Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.4.1
Component: Filesystem API Keywords:
Focuses: Cc:

Description

Some plugins expect WS_Filesystem() call to work properly without options.
SSH2 method requires several options to work. When plugin does not call request_filesystem_credentials() it becomes broken by FS_METHOD=ssh2 constant.

WordPress can use FTP_* constants as defaults in WP_Filesystem_SSH2 when none options are provided to constructor.

Change History (3)

#1 follow-up: @denkoren
2 months ago

I created a patch and PR on github, added this ticket's link to the description but it was not attached to ticket for some reason.

Here is the PR: https://github.com/WordPress/WordPress/pull/472

#2 @SergeyBiryukov
2 months ago

  • Component changed from General to Filesystem API

#3 in reply to: ↑ 1 @SergeyBiryukov
2 months ago

Replying to denkoren:

I created a patch and PR on github, added this ticket's link to the description but it was not attached to ticket for some reason.

Here is the PR: https://github.com/WordPress/WordPress/pull/472

Thanks for the PR! I think the attachment didn't work because https://github.com/WordPress/WordPress is a mirror of the build repo, not the development repo. It should work on https://github.com/WordPress/wordpress-develop.

Note: See TracTickets for help on using tickets.