Ticket #26769: 26769.patch.diff
File 26769.patch.diff, 1.4 KB (added by , 11 years ago) |
---|
-
src/wp-admin/menu.php
182 182 if ( current_user_can('list_users') ) 183 183 $menu[70] = array( __('Users'), 'list_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'none' ); 184 184 else 185 $menu[70] = array( __(' Profile'), 'read', 'profile.php', '', 'menu-top menu-icon-users', 'menu-users', 'none' );185 $menu[70] = array( __('My Profile'), 'read', 'profile.php', '', 'menu-top menu-icon-users', 'menu-users', 'none' ); 186 186 187 187 if ( current_user_can('list_users') ) { 188 188 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. … … 192 192 else 193 193 $submenu['users.php'][10] = array(_x('Add New', 'user'), 'promote_users', 'user-new.php'); 194 194 195 $submenu['users.php'][15] = array(__(' YourProfile'), 'read', 'profile.php');195 $submenu['users.php'][15] = array(__('My Profile'), 'read', 'profile.php'); 196 196 } else { 197 197 $_wp_real_parent_file['users.php'] = 'profile.php'; 198 $submenu['profile.php'][5] = array(__(' YourProfile'), 'read', 'profile.php');198 $submenu['profile.php'][5] = array(__('My Profile'), 'read', 'profile.php'); 199 199 if ( current_user_can('create_users') ) 200 200 $submenu['profile.php'][10] = array(__('Add New User'), 'create_users', 'user-new.php'); 201 201 else