add_role() fix from nielshackius. fixes #2298
git-svn-id: http://svn.automattic.com/wordpress/trunk@3482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
99385a2f18
commit
9cff7433a7
|
@ -336,7 +336,7 @@ function add_role($role, $display_name, $capabilities = '') {
|
|||
if ( ! isset($wp_roles) )
|
||||
$wp_roles = new WP_Roles();
|
||||
|
||||
return $wp_roles->add_role($role, $display_name, $capabilities = '');
|
||||
return $wp_roles->add_role($role, $display_name, $capabilities);
|
||||
}
|
||||
|
||||
function remove_role($role) {
|
||||
|
|
Loading…
Reference in New Issue