WordPress.org

Make WordPress Core

Ticket #10604: 10604.diff

File 10604.diff, 591 bytes (added by dd32, 9 years ago)

props lostinlafayette

  • wp-admin/includes/class-wp-filesystem-ssh2.php

     
    178170
    179171        function put_contents($file, $contents, $type = '' ) {
    180172                $file = ltrim($file, '/');
    181                 return file_put_contents('ssh2.sftp://' . $this->sftp_link . '/' . $file, $contents);
     173                return false !== file_put_contents('ssh2.sftp://' . $this->sftp_link . '/' . $file, $contents);
    182174        }
    183175
    184176        function cwd() {