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

WordPress Trac noreply at wordpress.org
Thu Oct 6 22:34:25 UTC 2016


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

 * keywords:   => needs-patch


Comment:

 If any new capabilities are introduced, they should be added to the final
 block of `case` statements in `map_meta_cap()` so they can be unit tested
 in `Tests_User_Capabilities`.

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


More information about the wp-trac mailing list