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:
nacin
2010-04-16 14:54:44 +00:00
parent 5deebd667f
commit ea4934a962
2 changed files with 30 additions and 19 deletions

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' );