WordPress.org

Make WordPress Core

Changeset 2764


Ignore:
Timestamp:
08/08/2005 07:38:41 AM (14 years ago)
Author:
matt
Message:

Show profile to the right people

File:
1 edited

Legend:

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

    r2760 r2764  
    1111$menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php');
    1212$menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
    13 $menu[35] = array(__('Users'), 'read', 'profile.php');
    14 $menu[40] = array(__('Options'), 'read', 'options-personal.php');
     13if ( current_user_can('edit_users') )
     14    $menu[35] = array(__('Users'), 'read', 'profile.php');
     15else
     16    $menu[35] = array(__('Profile'), 'read', 'profile.php');
     17$menu[40] = array(__('Options'), 'read', 'options-personal.php');-
    1518
    1619if ( get_option('use_fileupload') )
Note: See TracChangeset for help on using the changeset viewer.