Opened 12 years ago
Closed 12 years ago
#27265 closed defect (bug) (fixed)
trivial patch to make update form select the "SSH" radio button when FS_METHOD=='ssh2'
| Reported by: | jnielsendotnet | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Filesystem API | Version: | 3.8.1 |
| Severity: | normal | Keywords: | commit has-patch |
| Cc: | Focuses: |
Description
Possibly related to #17960.
I am trying to script a configuration where WordPress can update itself and install/update plugins via SSH. All tests are on a freshly installed WordPress with a new database. I go through the 5-minute install screen then to updates->reinstall now.
It fails in two different ways depending on the value of FS_METHOD in wp-config.php.
If I set FS_METHOD to "ssh", the form selects the right button but the first update/reinstall doesn't work (it never even tries an SSH connection). If I set FS_METHOD to "ssh2", the form does not select the right button but (if I select it manually) the first update/reinstall does work.
I am attaching a trivial patch that changes 'ssh' to 'ssh2' in two comments and one comparison in wp-admin/includes/file.php. With this patch everything works as expected with default configured values.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks good. The transport name is indeed 'ssh2' rather than 'ssh'.