Opened 16 years ago
Closed 16 years ago
#11808 closed defect (bug) (fixed)
is_super_admin() should try to get missing user_id
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Role/Capability | Keywords: | has-patch commit |
Focuses: | multisite | Cc: |
Description
If its user_id argument is missing, is_super_admin() should assume we want the current user's ID and try to get that before returning false.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
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.