Ticket #16053: 16053.3.diff
| File 16053.3.diff, 2.5 KB (added by , 16 years ago) |
|---|
-
wp-admin/includes/class-wp-ms-users-list-table.php
169 169 170 170 case 'username': 171 171 $avatar = get_avatar( $user->user_email, 32 ); 172 $edit_link = ( get_current_user_id() == $user->ID ) ? 'profile.php' : 'user-edit.php?user_id=' . $user->ID; 172 if ( get_current_user_id() == $user->ID ) { 173 $edit_link = 'profile.php'; 174 } else { 175 $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), 'user-edit.php?user_id=' . $user->ID ) ); 176 } 173 177 174 178 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><?php179 <?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo stripslashes( $user->user_login ); ?></a><?php 176 180 if ( in_array( $user->user_login, $super_admins ) ) 177 181 echo ' - ' . __( 'Super Admin' ); 178 182 ?></strong> 179 183 <br/> 180 184 <?php 181 185 $actions = array(); 182 $actions['edit'] = '<a href="' . esc_url( self_admin_url( $edit_link ) ). '">' . __( 'Edit' ) . '</a>';186 $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>'; 183 187 184 188 if ( current_user_can( 'delete_user', $user->ID) && ! in_array( $user->user_login, $super_admins ) ) { 185 189 $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>'; -
wp-admin/user-edit.php
168 168 <div id="message" class="updated"> 169 169 <p><strong><?php _e('User updated.') ?></strong></p> 170 170 <?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?> 171 <p><a href=" users.php"><?php _e('← Back to Authors and Users'); ?></a></p>171 <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php _e('← Back to Authors and Users'); ?></a></p> 172 172 <?php endif; ?> 173 173 </div> 174 174 <?php endif; ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)