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:
parent
e4a74710df
commit
b174a8dadb
|
@ -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