[wp-trac] [WordPress Trac] #12815: Allow defining $site_admins global array
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 2 15:23:48 UTC 2010
#12815: Allow defining $site_admins global array
-----------------------------+----------------------------------------------
Reporter: ryan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Role/Capability | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Comment(by nacin):
Seems fine to me. We should probably go with {{{$super_admins}}} since the
only thing we'd be breaking compatibility with is wp.com.
We could introduce a get_super_admins() to handle this, that way we can
replace more {{{ get_site_option( 'site_admins', array( 'admin' ) ); }}}
calls, and for example allow ms-users.php to show the right super admins.
If {{{$super_admins}}} is set, the new checkbox on user-edit.php should be
disabled, or hidden entirely (it can be hidden as I added a div.updated
'Important' box for super admin profiles).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12815#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list