Allow create_users cap to be used independently of edit_users cap. fixes #12794.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -186,6 +186,7 @@ if ( current_user_can('edit_users') ) {
|
||||
} else {
|
||||
$_wp_real_parent_file['users.php'] = 'profile.php';
|
||||
$submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php');
|
||||
$submenu['profile.php'][10] = array(__('Add New User'), 'create_users', 'user-new.php');
|
||||
}
|
||||
|
||||
$menu[75] = array( __('Tools'), 'edit_posts', 'tools.php', '', 'menu-top menu-icon-tools', 'menu-tools', 'div' );
|
||||
|
||||
Reference in New Issue
Block a user