There's a small typo in some of the new capabilities code, and one in get_userdata() as well:
Index: wp-includes/capabilities.php
===================================================================
--- wp-includes/capabilities.php (revision 2707)
+++ wp-includes/capabilities.php (working copy)
@@ -62,9 +62,9 @@
return $this->role_names;
}
- function is_role($caps)
+ function is_role($role)
{
- return empty($this->role_names[$cap]);
+ return empty($this->role_names[$role]);
}
}
Index: wp-includes/pluggable-functions.php
===================================================================
--- wp-includes/pluggable-functions.php (revision 2707)
+++ wp-includes/pluggable-functions.php (working copy)
@@ -52,7 +52,7 @@
}
$cache_userdata[$user_id] = $user;
- $cache_userdata[$cache_userdata[$userid]->user_login] =& $cache_userdata[$user_id];
+ $cache_userdata[$cache_userdata[$user_id]->user_login] =& $cache_userdata[$user_id];
return $cache_userdata[$user_id];
}