Changeset 15566 for trunk/wp-admin/includes/default-list-tables.php
- Timestamp:
- 09/05/2010 02:35:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/default-list-tables.php
r15542 r15566 1795 1795 $style = ''; 1796 1796 foreach ( $this->items as $userid => $user_object ) { 1797 $roles = $user_object->roles; 1798 $role = array_shift( $roles ); 1797 $role = reset( $user_object->roles ); 1799 1798 1800 1799 if ( is_multisite() && empty( $role ) ) … … 2792 2791 $blogusers_warning = __( 'Only showing first 5 users.' ) . ' <a href="' . esc_url( get_admin_url( $blog['blog_id'], 'users.php' ) ) . '">' . __( 'More' ) . '</a>'; 2793 2792 } 2794 foreach ( $blogusers as $ key => $val) {2795 echo '<a href="' . esc_url( admin_url( 'user-edit.php?user_id=' . $ val->user_id ) ) . '">' . esc_html( $val->user_login ) . '</a> ';2793 foreach ( $blogusers as $user_object ) { 2794 echo '<a href="' . esc_url( admin_url( 'user-edit.php?user_id=' . $user_object->ID ) ) . '">' . esc_html( $user_object->user_login ) . '</a> '; 2796 2795 if ( 'list' != $mode ) 2797 echo '( ' . $ val->user_email . ' )';2796 echo '( ' . $user_object->user_email . ' )'; 2798 2797 echo '<br />'; 2799 2798 }
Note: See TracChangeset
for help on using the changeset viewer.