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

WordPress Trac noreply at wordpress.org
Tue Apr 12 00:51:57 UTC 2016


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

Comment (by johnjamesjacoby):

 Nice! Interesting catch with the `is_multisite()` additions.

 These functions conveniently use the `_site_option()` functions, which
 technically do work on single-site, so I don't know that adding
 `is_multisite()` is necessary necessary, but I suppose probably wise.

 Patch applies cleanly.

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


More information about the wp-trac mailing list