Ticket #12711: 12711.2.patch
| File 12711.2.patch, 1.2 KB (added by , 16 years ago) |
|---|
-
wp-admin/users.php
368 368 $user_object = new WP_User($userid); 369 369 $roles = $user_object->roles; 370 370 $role = array_shift($roles); 371 372 $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; 373 echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] ); 371 if ( is_multisite() && ! empty($role) ) { 372 $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; 373 echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] ); 374 } 374 375 } 375 376 ?> 376 377 </tbody> -
wp-includes/capabilities.php
698 698 function remove_all_caps() { 699 699 global $wpdb; 700 700 $this->caps = array(); 701 update_user_meta( $this->ID, $this->cap_key, '' );702 update_user_meta( $this->ID, $wpdb->prefix . 'user_level', '' );701 delete_user_meta( $this->ID, $this->cap_key, '' ); 702 delete_user_meta( $this->ID, $wpdb->prefix . 'user_level', '' ); 703 703 $this->get_role_caps(); 704 704 } 705 705