[wp-trac] [WordPress Trac] #32345: FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR are not considered when using built in ssh2/sftp

WordPress Trac noreply at wordpress.org
Mon May 11 15:28:31 UTC 2015


#32345: FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR are not considered when using
built in ssh2/sftp
-----------------------------+-----------------------------
 Reporter:  aberbenni        |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  4.2.2
 Severity:  normal           |   Keywords:
  Focuses:  administration   |
-----------------------------+-----------------------------
 FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR are not considered when using
 built in ssh2/sftp. They are necessary in chrooted environments.

 A simple solution could be to modify
 {{{
 find_folder( $folder )
 }}}
 function from
 {{{
 if ( stripos($this->method, 'ftp') !== false ) {
 }}}
 to
 {{{
 if ( stripos($this->method, 'ftp') !== false || stripos($this->method,
 'ssh2') !== false ) {
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32345>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list