Changeset 3857 for trunk/wp-admin/menu.php
- Timestamp:
- 06/08/2006 06:36:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r3790 r3857 12 12 $menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); 13 13 if ( current_user_can('edit_users') ) 14 $menu[35] = array(__('Users'), ' read', 'profile.php');14 $menu[35] = array(__('Users'), 'edit_users', 'users.php'); 15 15 else 16 16 $menu[35] = array(__('Profile'), 'read', 'profile.php'); … … 35 35 $submenu['link-manager.php'][20] = array(__('Import Bookmarks'), 'manage_links', 'link-import.php'); 36 36 37 $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php'); 38 $submenu['profile.php'][10] = array(__('Authors & Users'), 'edit_users', 'users.php'); 37 if ( 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 } 39 43 40 44 $submenu['options-general.php'][10] = array(__('General'), 'manage_options', 'options-general.php');
Note: See TracChangeset
for help on using the changeset viewer.