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:
Ryan Boren 2008-04-07 21:25:31 +00:00
parent 7b825a3086
commit 916dad2756
1 changed files with 1 additions and 0 deletions

View File

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