Filesystem: Fix the move() method of the SSH2 transport, which was using the SSH2 link rather than the SFTP link.

Props nobleclem. Fixes #29405


git-svn-id: https://develop.svn.wordpress.org/trunk@29970 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2014-10-20 07:45:52 +00:00
parent 98c438048d
commit f2b727f333

View File

@ -254,7 +254,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
}
public function move($source, $destination, $overwrite = false) {
return @ssh2_sftp_rename($this->link, $source, $destination);
return @ssh2_sftp_rename( $this->sftp_link, $source, $destination );
}
public function delete($file, $recursive = false, $type = false) {