mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Fix class-wp-filesystem-ssh2 put_contents() for empty files, props lostinlafayette dd32, fixes #10604
git-svn-id: http://svn.automattic.com/wordpress/trunk@11818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
725a6787b2
commit
5a98759e8d
@ -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