#15411 closed defect (bug) (fixed)
site-users.php should use API to fetch roles
| Reported by: | ryan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Multisite | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
get_blog_option( $id, "{$blog_prefix}user_roles" )
That won't work on sites that hard code a roles array in memory. API should be used to fetch the roles. Otherwise you can end up with:
Warning: Invalid argument supplied for foreach() in /..l/wp-admin/network/site-users.php on line 149
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [16370]) Handle sites that hard-code roles rather than storing them in the DB. Temp hack. see #15411