Changeset 21364 for trunk/wp-admin/includes/class-wp-users-list-table.php
- Timestamp:
- 07/30/2012 06:30:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-users-list-table.php
r21323 r21364 232 232 if ( current_user_can( 'list_users' ) ) { 233 233 // Set up the user editing link 234 // TODO: make profile/user-edit determination a separate function 235 if ( get_current_user_id() == $user_object->ID ) { 236 $edit_link = 'profile.php'; 237 } else { 238 $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), "user-edit.php?user_id=$user_object->ID" ) ); 239 } 234 $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_object->ID ) ) ); 240 235 241 236 // Set up the hover actions for this user
Note: See TracChangeset
for help on using the changeset viewer.