[wp-trac] [WordPress Trac] #46957: Site Health: Make site health page access be filterable

WordPress Trac noreply at wordpress.org
Mon Jun 10 07:41:21 UTC 2019


#46957: Site Health: Make site health page access be filterable
-------------------------------------------------+-------------------------
 Reporter:  Clorith                              |       Owner:  Clorith
     Type:  task (blessed)                       |      Status:  closed
 Priority:  normal                               |   Milestone:  5.2.2
Component:  Administration                       |     Version:  5.2
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  site-health has-patch has-unit-      |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

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


Comment:

 In [changeset:"45507" 45507]:
 {{{
 #!CommitTicketReference repository="" revision="45507"
 Site health: Introduce `view_site_health_checks` capability.

 Introduces the faux primitive capability `view_site_health_checks`
 available to single site admins and multisite super-admin to view the site
 health page within the admin.

 The capability is mapped to the `install_plugins` capability without being
 dependent on the file system being writable. This fixes a bug where the
 feature couldn't be used by sites unable to write to the file system or
 managed through version control.

 The capability is granted on the `user_has_cap` filter.

 Props birgire, Clorith, palmiak, peterwilsoncc, spacedmonkey.
 Fixes #46957.
 }}}

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


More information about the wp-trac mailing list