Filesystem Class for ftpext does not perform chmod for directories
|Reported by:||st3ff3n||Owned by:||DD32|
When I try to install or update a plugin with ftp, which comes with its own directory, the directory gets created with permission 400. The ftp_chmod function is not performed for created directories. wp-admin is not able, to acces this plugin. I don't know, if this is the desired behaviour, but I worked around this with the attached patch. The exists function always returns false for directories, so I changed the line to also check, if the argument is a directory.
Perhaps there are better ways, to do this.
Change History (5)
- Keywords reporter-feedback added
- Milestone changed from Unassigned to 2.8
- Owner set to DD32
- Status changed from new to assigned
- Type changed from feature request to defect (bug)