[wp-trac] [WordPress Trac] #10889: filesystem's put_content() methods have inconsistent arguments -- causes .maintenance file to not be created

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 2 07:30:33 UTC 2009


#10889: filesystem's put_content() methods have inconsistent arguments -- causes
.maintenance file to not be created
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  dd32     
     Type:  defect (bug)       |      Status:  new      
 Priority:  normal             |   Milestone:  2.9      
Component:  Filesystem         |     Version:  2.8.4    
 Severity:  normal             |    Keywords:  has-patch
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  => has-patch


Comment:

 to reproduce the bug, use something like:

 {{{
 $wp_filesystem->put_contents(WP_CONTENT_DIR . '/foo.txt', 'bar');
 }}}

 Patch is against WP 2.8.4, and is tested with both of the FTP-based file
 extensions. There might be a similar change needed for the SSH-based file
 extension.

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


More information about the wp-trac mailing list