[wp-trac] [WordPress Trac] #21788: Relocate revoke_super_admin() and grant_super_admin() to capabilities.php

WordPress Trac noreply at wordpress.org
Thu Apr 14 03:34:10 UTC 2016


#21788: Relocate revoke_super_admin() and grant_super_admin() to capabilities.php
-----------------------------+-------------------------
 Reporter:  johnjamesjacoby  |       Owner:  jeremyfelt
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:  4.6
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:  multisite
-----------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37200"]:
 {{{
 #!CommitTicketReference repository="" revision="37200"
 Multisite: Relocate `revoke_super_admin()` and `grant_super_admin()`

 Moving these functions to `wp-includes/capabilities.php` allows plugins to
 access more than just `is_super_admin()` and `get_super_admin()` from the
 front end without including a file via `wp-admin/`. Add an
 `is_multisite()` check to prevent use of these on single site environments
 now that they have left `ms.php`..

 Props johnjamesjacoby.
 Fixes #21788.
 }}}

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


More information about the wp-trac mailing list