[wp-trac] [WordPress Trac] #37616: Replace `is_super_admin()` calls with real capability checks

WordPress Trac noreply at wordpress.org
Tue Jan 24 13:12:30 UTC 2017


#37616: Replace `is_super_admin()` calls with real capability checks
-----------------------------+------------------------
 Reporter:  flixos90         |       Owner:
     Type:  task (blessed)   |      Status:  reviewing
 Priority:  normal           |   Milestone:  4.8
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  multisite
-----------------------------+------------------------

Comment (by flixos90):

 In [changeset:"39947"]:
 {{{
 #!CommitTicketReference repository="" revision="39947"
 Multisite: Replace `is_super_admin()` with a proper capability check when
 showing a notice about `WPLANG`.

 In multisite, the notice is displayed to users that have the
 `manage_network_options` capability. In non-multisite, the notice is
 displayed to users with the `manage_options` capability.

 Props Dhaval Parekh.
 Fixes #39207. See #37616.
 }}}

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


More information about the wp-trac mailing list