Fix add_users_page() when current user does not have edit_users cap. Props mattyrob. fixes #6621 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b825a3086
commit
916dad2756
@ -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