[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 04:16:12 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 jeremyfelt):

 Replying to [comment:12 johnjamesjacoby]:
 > 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.

 Yeah, it seems like a good idea to move the functions first before
 thinking about whether support for grant/revoke should be added to single
 site.

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


More information about the wp-trac mailing list