mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
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:
parent
04a3dc4c03
commit
27174a151b
@ -62,9 +62,9 @@ class WP_Roles {
|
|||||||
return $this->role_names;
|
return $this->role_names;
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_role($caps)
|
function is_role($role)
|
||||||
{
|
{
|
||||||
return empty($this->role_names[$cap]);
|
return empty($this->role_names[$role]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ function get_userdata( $user_id ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$cache_userdata[$user_id] = $user;
|
$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];
|
return $cache_userdata[$user_id];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user