Ticket #15903: 15903.patch
File 15903.patch, 1.6 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-ms-users-list-table.php
172 172 $edit_link = ( get_current_user_id() == $user->ID ) ? 'profile.php' : 'user-edit.php?user_id=' . $user->ID; 173 173 174 174 echo "<td $attributes>"; ?> 175 <?php echo $avatar; ?><strong><a href="<?php echo esc_url( self_admin_url( $edit_link ) ); ?>" class="edit"><?php echo stripslashes( $user->user_login ); ?></a><?php175 <?php echo $avatar; ?><strong><a href="<?php echo esc_url( network_admin_url( $edit_link ) ); ?>" class="edit"><?php echo stripslashes( $user->user_login ); ?></a><?php 176 176 if ( in_array( $user->user_login, $super_admins ) ) 177 177 echo ' - ' . __( 'Super Admin' ); 178 178 ?></strong> 179 179 <br/> 180 180 <?php 181 181 $actions = array(); 182 $actions['edit'] = '<a href="' . esc_url( self_admin_url( $edit_link ) ) . '">' . __( 'Edit' ) . '</a>';182 $actions['edit'] = '<a href="' . esc_url( network_admin_url( $edit_link ) ) . '">' . __( 'Edit' ) . '</a>'; 183 183 184 184 if ( current_user_can( 'delete_user', $user->ID) && ! in_array( $user->user_login, $super_admins ) ) { 185 185 $actions['delete'] = '<a href="' . $delete = esc_url( network_admin_url( add_query_arg( '_wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'edit.php', 'deleteuser' ) . '&action=deleteuser&id=' . $user->ID ) ) ) . '" class="delete">' . __( 'Delete' ) . '</a>';