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:
parent
95c090d08d
commit
1dae83d024
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user