[wp-trac] [WordPress Trac] #10604: class-wp-filesystem-ssh2.php put_contents fails

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 13 14:00:47 UTC 2009


#10604: class-wp-filesystem-ssh2.php put_contents fails
-----------------------------+----------------------------------------------
 Reporter:  lostinlafayette  |       Owner:  dd32      
     Type:  defect (bug)     |      Status:  new       
 Priority:  normal           |   Milestone:  Unassigned
Component:  Filesystem       |     Version:            
 Severity:  normal           |    Keywords:            
-----------------------------+----------------------------------------------

Comment(by lostinlafayette):

 On second thought the issue is more likely due to file.php not using the
 correct comparison on the return value of $fs->put_contents.  It should be
 $fs_put_contents(...)==false instead of !$fs_put_contents(...) which when
 given an empty file will incorrectly fail even though the file was
 successfully written.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10604#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list