WordPress.org

Make WordPress Core

Changeset 11818


Ignore:
Timestamp:
08/15/2009 07:49:28 AM (9 years ago)
Author:
azaozz
Message:

Fix class-wp-filesystem-ssh2 put_contents() for empty files, props lostinlafayette dd32, fixes #10604

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-ssh2.php

    r11632 r11818  
    179179    function put_contents($file, $contents, $type = '' ) {
    180180        $file = ltrim($file, '/');
    181         return file_put_contents('ssh2.sftp://' . $this->sftp_link . '/' . $file, $contents);
     181        return false !== file_put_contents('ssh2.sftp://' . $this->sftp_link . '/' . $file, $contents);
    182182    }
    183183
Note: See TracChangeset for help on using the changeset viewer.