Allow create_users cap to be used independently of edit_users cap. fixes #12794.

git-svn-id: https://develop.svn.wordpress.org/trunk@14110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-04-16 14:54:44 +00:00
parent 08a6301257
commit 6be056c689
2 changed files with 30 additions and 19 deletions
+1
View File
@@ -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' );