Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#9980 closed defect (bug) (fixed)

FTP Extension SSL issues + refactor/cleanup of UI logic

Reported by: dd32's profile dd32 Owned by: dd32's profile dd32
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.8
Component: Filesystem API Keywords: has-patch needs-testing
Focuses: Cc:

Description

As discussed last night on #wordpress-dev, There exists cases where people are getting invalid username/password when using the FTP Extension (Whilst the credentials are correct).

__lance__ tracked it down to SSL being selected, when the UI wasnt showing it as such.. It seems it was coming from $opt['ssl'], which AFAIK, Isnt actually set by WordPress at all (It could've been left over from an early revision..)

The attached patch cleans up some of the UI Logic as well, and takes into consideration FS_METHOD being set, which forces it in some cases.

Also, Includes an uncommited change, a class_exists() around the FS Abstraction file, To check if the class exists already before including a abstraction file, Its mainly for use when a plugin adds a 3rd-party FS Method file (Like my debug trace plugin does, No-wonder it never worked for anyone else)

Attachments (1)

9980.diff (6.7 KB) - added by dd32 15 years ago.

Download all attachments as: .zip

Change History (5)

@dd32
15 years ago

#1 @dd32
15 years ago

  • Keywords has-patch needs-testing added

#2 @demetris
15 years ago

  • Cc dkikizas@… added

I did not have any problems before, but I tried this just for regressions.

I tested on 4 different setups, of which 2 use FTP/FTPS for upgrades/updates.

Everything worked OK before, and everything works OK after.

#3 @lance_
15 years ago

Installed the patch, confirmed that this allows me to install plugins via ftp now. Thanks!

#4 @westi
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11495]) Fix plugin/theme upgrade issues when using ftp extension. Fixes #9980 props DD32.

Note: See TracTickets for help on using tickets.