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

Props nobleclem. Fixes #29405

Built from https://develop.svn.wordpress.org/trunk@29970


git-svn-id: http://core.svn.wordpress.org/trunk@29716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2014-10-20 07:46:19 +00:00
parent 6792506741
commit dbbd9fb5ec

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) {