Fix class-wp-filesystem-ssh2 put_contents() for empty files, props lostinlafayette dd32, fixes #10604
git-svn-id: https://develop.svn.wordpress.org/trunk@11818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
14ac0702da
commit
82a0986656
@ -178,7 +178,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
|
||||
|
||||
function put_contents($file, $contents, $type = '' ) {
|
||||
$file = ltrim($file, '/');
|
||||
return file_put_contents('ssh2.sftp://' . $this->sftp_link . '/' . $file, $contents);
|
||||
return false !== file_put_contents('ssh2.sftp://' . $this->sftp_link . '/' . $file, $contents);
|
||||
}
|
||||
|
||||
function cwd() {
|
||||
|
Loading…
Reference in New Issue
Block a user