Fix typos in is_role() and get_userdata(). fixes #1509 Props: mdawaffe

git-svn-id: http://svn.automattic.com/wordpress/trunk@2711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-07-14 22:58:58 +00:00
parent 04a3dc4c03
commit 27174a151b
2 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@ class WP_Roles {
return $this->role_names;
}
function is_role($caps)
function is_role($role)
{
return empty($this->role_names[$cap]);
return empty($this->role_names[$role]);
}
}

View File

@ -52,7 +52,7 @@ function get_userdata( $user_id ) {
}
$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];
}