WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/10/2015 03:25:08 PM (5 years ago)
Author:
wonderboymusic
Message:

Users List Table: after [34963], remove unused code/add doc for global import.

See #22959.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r34965 r35011  
    375375     */
    376376    public function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
    377         $wp_roles = wp_roles();
    378 
    379377        if ( ! ( $user_object instanceof WP_User ) ) {
    380378            $user_object = get_userdata( (int) $user_object );
     
    432430            $edit = '<strong>' . $user_object->user_login . '</strong>';
    433431        }
    434         $role_name = isset( $wp_roles->role_names[$role] ) ? translate_user_role( $wp_roles->role_names[$role] ) : __( 'None' );
    435432        $avatar = get_avatar( $user_object->ID, 32 );
    436433
     
    528525     * @access protected
    529526     *
     527     * @global WP_Roles $wp_roles WP_Roles instance.
     528     *
    530529     * @param WP_User $user_object The WP_User object.
    531530     * @return array An array of user roles.
Note: See TracChangeset for help on using the changeset viewer.