[wp-trac] [WordPress Trac] #39206: Replace `is_super_admin()` with `current_user_can( 'manage_options' )` in wp-admin/network.php
    WordPress Trac 
    noreply at wordpress.org
       
    Fri Mar  3 17:50:05 UTC 2017
    
    
  
#39206: Replace `is_super_admin()` with `current_user_can( 'manage_options' )` in
wp-admin/network.php
------------------------------------------+------------------------
 Reporter:  ashokkumar24                  |       Owner:  flixos90
     Type:  enhancement                   |      Status:  reviewing
 Priority:  normal                        |   Milestone:  4.8
Component:  Role/Capability               |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  multisite
------------------------------------------+------------------------
Comment (by johnbillion):
 I'd prefer a `setup_network` meta capability (handled in `map_meta_cap()`)
 which maps to the logic you mentioned.
 Needs a patch, and the cap needs adding to
 `Tests_User_Capabilities::_getSingleSiteMetaCaps()` and
 `Tests_User_Capabilities::_getMultiSiteMetaCaps()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39206#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list