[wp-trac] [WordPress Trac] #50018: Site Health: is_writable() check when there are more than 1 theme directories

WordPress Trac noreply at wordpress.org
Sun Aug 28 13:08:55 UTC 2022


#50018: Site Health: is_writable() check when there are more than 1 theme
directories
-------------------------+---------------------
 Reporter:  pbiron       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.1
Component:  Site Health  |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+---------------------
Changes (by Clorith):

 * keywords:   => needs-patch


Comment:

 Is this something you'd like to work on @pbiron?

 I'm thinking we need to actually grab the `$wp_theme_directories` global
 variable for this one, and check if it's got more than one entry; loop
 over them and check if they are writable, but only if they are within
 `ABSPATH` to avoid hitting the same kind of scenario as the symlink issue
 you noted in the previous ticket. (This because it's possible to provide
 an absolute path, alongside the ability to register a relative path from
 `wp-content`)

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


More information about the wp-trac mailing list