Opened 14 years ago
Closed 13 years ago
#17960 closed defect (bug) (invalid)
define ("FS_METHOD", "ssh")
Reported by: | didopalauzov | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1.4 |
Component: | Upgrade/Install | Keywords: | needs-docs |
Focuses: | Cc: |
Description
http://codex.wordpress.org/Editing_wp-config.php 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)
Note: See
TracTickets for help on using
tickets.
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: http://wordpress.org/extend/plugins/ssh-sftp-updater-support/
FTP_SSH is a constant which is for back-compat, it should not be used or needed.