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:
ryan 2008-04-07 21:25:31 +00:00
parent 4e1465b8d9
commit 92fe7fcad0

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