Show profile to the right people

git-svn-id: https://develop.svn.wordpress.org/trunk@2764 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-08-08 07:38:41 +00:00
parent 5998b3db15
commit a9a371b88d
1 changed files with 5 additions and 2 deletions

View File

@ -10,8 +10,11 @@ $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php');
$menu[20] = array(__('Links'), 'manage_links', 'link-manager.php');
$menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php');
$menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
$menu[35] = array(__('Users'), 'read', 'profile.php');
$menu[40] = array(__('Options'), 'read', 'options-personal.php');
if ( current_user_can('edit_users') )
$menu[35] = array(__('Users'), 'read', 'profile.php');
else
$menu[35] = array(__('Profile'), 'read', 'profile.php');
$menu[40] = array(__('Options'), 'read', 'options-personal.php');-
if ( get_option('use_fileupload') )
$menu[45] = array(__('Upload'), 'upload_files', 'upload.php');