Changeset 21866
- Timestamp:
- 09/16/2012 04:24:33 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r21814 r21866 1023 1023 $wp_list_table = _get_list_table('WP_Users_List_Table'); 1024 1024 1025 $role = current( $user_object->roles ); 1026 1025 1027 $x = new WP_Ajax_Response( array( 1026 1028 'what' => 'user', 1027 1029 'id' => $user_id, 1028 'data' => $wp_list_table->single_row( $user_object, '', $ user_object->roles[0]),1030 'data' => $wp_list_table->single_row( $user_object, '', $role ), 1029 1031 'supplemental' => array( 1030 1032 'show-link' => sprintf(__( 'User <a href="#%s">%s</a> added' ), "user-$user_id", $user_object->user_login), 1031 'role' => $ user_object->roles[0]1033 'role' => $role, 1032 1034 ) 1033 1035 ) ); -
trunk/wp-includes/capabilities.php
r21563 r21866 787 787 unset( $this->caps[$oldrole] ); 788 788 789 if ( 1 == count( $this->roles ) && $role == $this->roles[0])789 if ( 1 == count( $this->roles ) && $role == current( $this->roles ) ) 790 790 return; 791 791
Note: See TracChangeset
for help on using the changeset viewer.