89 $menu[70] = array( __('Profile'), 'read', 'profile.php', '', 'menu-top', 'menu-users', 'div' ); |
89 $menu[70] = array( __('Profile'), 'read', 'profile.php', '', 'menu-top', 'menu-users', 'div' ); |
90 |
90 |
91 if ( current_user_can('edit_users') ) { |
91 if ( current_user_can('edit_users') ) { |
92 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. |
92 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. |
93 $submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php'); |
93 $submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php'); |
94 $submenu['users.php'][10] = array(__('Add New'), 'create_users', 'user-new.php'); |
94 $submenu['users.php'][10] = array(_x('Add New', 'user'), 'create_users', 'user-new.php'); |
95 $submenu['users.php'][15] = array(__('Your Profile'), 'read', 'profile.php'); |
95 $submenu['users.php'][15] = array(__('Your Profile'), 'read', 'profile.php'); |
96 } else { |
96 } else { |
97 $_wp_real_parent_file['users.php'] = 'profile.php'; |
97 $_wp_real_parent_file['users.php'] = 'profile.php'; |
98 $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php'); |
98 $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php'); |
99 } |
99 } |