[wp-trac] [WordPress Trac] #51340: Stop chmodding files and folders

WordPress Trac noreply at wordpress.org
Sun Mar 26 14:08:36 UTC 2023


#51340: Stop chmodding files and folders
----------------------------+------------------------------
 Reporter:  malthert        |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:  5.3
 Severity:  major           |  Resolution:
 Keywords:  dev-feedback    |     Focuses:
----------------------------+------------------------------

Comment (by kkmuffme):

 1) is the way to go. As a first step, we could just give a doing_it_wrong
 for cases where we would run into an error, to force people to get their
 umask correctly set up.

 2) agree, this is a bad idea

 3) a filter could be overwritten, so this isn't "save".
 A constant would be a possibility, similar to the existing
 `DISALLOW_FILE_MODS`
 Maybe even use `DISALLOW_FILE_MODS`?

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


More information about the wp-trac mailing list