[wp-trac] [WordPress Trac] #15411: site-users.php should use API top fetch roles
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 12 22:19:58 UTC 2010
#15411: site-users.php should use API top fetch roles
--------------------------+-------------------------------------------------
Reporter: ryan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Multisite | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
{{{
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
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15411>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list