[wp-trac] [WordPress Trac] #47204: Site Health: not showing if DISALLOW_FILE_MODS is set to true
WordPress Trac
noreply at wordpress.org
Thu May 9 22:25:55 UTC 2019
#47204: Site Health: not showing if DISALLOW_FILE_MODS is set to true
--------------------------+-----------------------------
Reporter: palmiak | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Site Health page is not showing if you set "DISALLOW_FILE_MODS" to true
(which is quite normal if you are using eg Bedrock -
https://roots.io/bedrock/).
After some checking I've found the problem is related to this check:
{{{
current_user_can( 'install_plugins' )
}}}
I think that we can check for "manage_options" instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47204>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list