[wp-trac] [WordPress Trac] #40406: Replace `is_super_admin()` check when setting up multisite

WordPress Trac noreply at wordpress.org
Mon Apr 10 22:00:03 UTC 2017

#40406: Replace `is_super_admin()` check when setting up multisite
 Reporter:  flixos90            |       Owner:  flixos90
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  4.8
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  needs-patch         |     Focuses:  multisite
Changes (by flixos90):

 * owner:   => flixos90
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"40406"]:
 #!CommitTicketReference repository="" revision="40406"
 Multisite: Replace unnecessary `is_super_admin()` check when setting up
 the initial network.

 When using `is_super_admin()` in a non-multisite environment, the function
 is supposed to check for administrator capabilities. The process of
 querying all users and filtering them with that function can be optimized
 by only querying users with the administrator role instead.

 Fixes #40406. See #37616.

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

More information about the wp-trac mailing list