Add add_users cap to allow distringuishing between adding and creating users.
git-svn-id: https://develop.svn.wordpress.org/trunk@14174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bc16bc564e
commit
f234057c83
|
@ -608,6 +608,7 @@ function populate_roles_300() {
|
||||||
if ( !empty( $role ) ) {
|
if ( !empty( $role ) ) {
|
||||||
$role->add_cap( 'update_core' );
|
$role->add_cap( 'update_core' );
|
||||||
$role->add_cap( 'remove_users' );
|
$role->add_cap( 'remove_users' );
|
||||||
|
$role->add_cap( 'add_users' );
|
||||||
$role->add_cap( 'edit_theme_options' );
|
$role->add_cap( 'edit_theme_options' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue