[wp-trac] [WordPress Trac] #64426: WP_Filesystem_Direct::getchmod() does not handle fileperms() errors

WordPress Trac noreply at wordpress.org
Mon Dec 22 01:16:46 UTC 2025


#64426: WP_Filesystem_Direct::getchmod() does not handle fileperms() errors
--------------------------------------+--------------------------
 Reporter:  vietcgi                   |       Owner:  westonruter
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  7.0
Component:  Filesystem API            |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Changes (by westonruter):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61398" 61398]:
 {{{
 #!CommitTicketReference repository="" revision="61398"
 Filesystem API: Resolve FIXME comment for
 `WP_Filesystem_Direct::getchmod()` by explicitly returning '0' in error
 case.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10637

 Follow-up to [11831].

 Props vietcgi, westonruter.
 See #10304.
 Fixes #64426.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64426#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list