Return role object after adding.

git-svn-id: https://develop.svn.wordpress.org/trunk@3242 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-30 07:32:43 +00:00
parent 95c090d08d
commit 1dae83d024
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) {