[wp-trac] [WordPress Trac] #11808: is_super_admin() should try to get missing user_id
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 7 16:39:22 UTC 2010
#11808: is_super_admin() should try to get missing user_id
-----------------------------+----------------------------------------------
Reporter: filosofo | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Role/Capability | Version: 3.0
Severity: normal | Keywords: is_super_admin has-patch multisite
-----------------------------+----------------------------------------------
Comment(by filosofo):
To clarify, instead of checking the global $current_user directly
is_super_admin() should rely on the current user API as the functions used
are pluggable and thus they might not be setting $current_user in
predictable ways.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11808#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list