Make WordPress Core


Ignore:
Timestamp:
06/08/2006 06:36:05 PM (18 years ago)
Author:
ryan
Message:

User management improvements from Mark Jaquith and David House. #2793

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r3790 r3857  
    1212$menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
    1313if ( current_user_can('edit_users') )
    14     $menu[35] = array(__('Users'), 'read', 'profile.php');
     14    $menu[35] = array(__('Users'), 'edit_users', 'users.php');
    1515else
    1616    $menu[35] = array(__('Profile'), 'read', 'profile.php');
     
    3535$submenu['link-manager.php'][20] = array(__('Import Bookmarks'), 'manage_links', 'link-import.php');
    3636
    37 $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php');
    38 $submenu['profile.php'][10] = array(__('Authors & Users'), 'edit_users', 'users.php');
     37if ( current_user_can('edit_users') ) {
     38    $submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php');
     39    $submenu['users.php'][10] = array(__('Your Profile'), 'read', 'profile.php');
     40} else {
     41    $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php');
     42}
    3943
    4044$submenu['options-general.php'][10] = array(__('General'), 'manage_options', 'options-general.php');
Note: See TracChangeset for help on using the changeset viewer.