Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#17960 closed defect (bug) (invalid)

define ("FS_METHOD", "ssh")

Reported by: didopalauzov's profile didopalauzov Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1.4
Component: Upgrade/Install Keywords: needs-docs
Focuses: Cc:

Description says, that "ssh" for "FS_METHOD" is a valid value. Setting FS_METHOD to ssh implies, that wp-admin/includes/file/get_filesystem_method() returns 'ssh', and wp-admin/includes/file.php:WP_Filesystem() searches then for the file wp-admin/includes/class-wp-filesystem-ssh.php, but the file is called class-wp-filesystem-ssh2.php .

Setting FS_METHOD to ssh2 does work, but FTP and FTPS (SSL) are still available in the update-webpage.

Moreover, file.php checks if FTP_SSH is defined, but FTP_SSH is nowhere else mentioned, neither do I find some documentation for it.

Change History (1)

#1 @dd32
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Forcing FS_METHOD to ssh2 will not work if the Server environment does not support the PHP SSH2 extension.

Keep an eye on this plugin for non-php-extension support:

FTP_SSH is a constant which is for back-compat, it should not be used or needed.

Note: See TracTickets for help on using tickets.