mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fix add_users_page() when current user does not have edit_users cap. Props mattyrob. fixes #6621 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4e1465b8d9
commit
92fe7fcad0
@ -52,6 +52,7 @@ if ( current_user_can('edit_users') ) {
|
||||
$submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php');
|
||||
$submenu['users.php'][10] = array(__('Your Profile'), 'read', 'profile.php');
|
||||
} else {
|
||||
$_wp_real_parent_file['users.php'] = 'profile.php';
|
||||
$submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user