diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 9dd889f528..716b20d7fd 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -1227,18 +1227,28 @@ function user_row( $user_object, $style = '', $role = '' ) {
$numposts = get_usernumposts( $user_object->ID );
if ( current_user_can( 'edit_user', $user_object->ID ) ) {
if ($current_user->ID == $user_object->ID) {
- $edit = 'profile.php';
+ $edit_link = 'profile.php';
} else {
- $edit = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" ) );
+ $edit_link = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" ) );
+ }
+ $edit = "$user_object->user_login
";
+ $actions = array();
+ $actions['edit'] = '' . __('Edit') . '';
+ $actions['delete'] = "user_login )) . "') ) { return true;}return false;\">" . __('Delete') . "";
+ $action_count = count($actions);
+ $i = 0;
+ foreach ( $actions as $action => $link ) {
+ ++$i;
+ ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
+ $edit .= "$link$sep";
}
- $edit = "$user_object->user_login";
} else {
- $edit = $user_object->user_login;
+ $edit = '' . $user_object->user_login . '';
}
$role_name = isset($wp_roles->role_names[$role]) ? translate_with_context($wp_roles->role_names[$role]) : __('None');
$r = "