[wp-trac] [WordPress Trac] #43390: get_super_admins() should not return "admin" by default

WordPress Trac noreply at wordpress.org
Fri Feb 23 01:42:19 UTC 2018


#43390: get_super_admins() should not return "admin" by default
--------------------------------+------------------------------
 Reporter:  thomaswm            |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by thomaswm):

 Just realized that `grant_super_admin()` and `revoke_super_admin()` are
 also affected.

 Lines [https://core.trac.wordpress.org/browser/tags/4.9/src/wp-
 includes/capabilities.php#L820 820] and
 [https://core.trac.wordpress.org/browser/tags/4.9/src/wp-
 includes/capabilities.php#L867 867] in `wp-includes/capabilities.php` both
 read:

 {{{#!php
 $super_admins = get_site_option( 'site_admins', array( 'admin' ) );
 }}}

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


More information about the wp-trac mailing list