[wp-trac] [WordPress Trac] #11261: method chmod in WP_Filesystem doesn't work in recursive mode

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 5 22:39:44 UTC 2010


#11261: method chmod in WP_Filesystem doesn't work in recursive mode
--------------------------+-------------------------------------------------
 Reporter:  G.Hue         |       Owner:  dd32       
     Type:  defect (bug)  |      Status:  accepted   
 Priority:  normal        |   Milestone:  3.0        
Component:  Filesystem    |     Version:  2.8.4      
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by reaperhulk):

 The attachment above is my attempt at fixing this bug.  I reordered the
 logic so it checks to see if it's recursive and a directory first.  It
 will then recursively call chmod (using the proper filename now).

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


More information about the wp-trac mailing list