up until now this would work in my plugin:
$blogusers = get_users_of_blog();
foreach( $blogusers as $user ) {
if $user->has_cap( 'whatever' )
do_something();
}
Are the items returned not class WP_User anymore?
Is it a bug or was I just lucky it did work before?
This did indeed change in 3.1: http://core.trac.wordpress.org/ticket/15854
However, It did get reverted to 3.0's code: http://core.trac.wordpress.org/changeset/17084
But that code by itself will not work at all, as WP_User objects are not returned, just the database rows..
Thanks for clarifying. I'll better use WP_User_Query.