Return role object after adding.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-30 07:32:43 +00:00
parent e4a74710df
commit b174a8dadb
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class WP_Roles {
update_option($this->role_key, $this->roles);
$this->role_objects[$role] = new WP_Role($role, $capabilities);
$this->role_names[$role] = $display_name;
return $this->role_objects[$role];
}
function remove_role($role) {