mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
98c438048d
commit
f2b727f333
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user