WordPress.org

Make WordPress Core

Changeset 16354


Ignore:
Timestamp:
11/13/2010 08:47:34 PM (8 years ago)
Author:
scribu
Message:

Make manage_users_custom_column hook consistent between WP_(MS)?_Users_List_Table. Fixes #14562

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

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

    r16328 r16354  
    160160
    161161            foreach ( $columns as $column_name => $column_display_name ) :
     162                $style = '';
     163                if ( in_array( $column_name, $hidden ) )
     164                    $style = ' style="display:none;"';
     165
     166                $attributes = "$class$style";
     167
    162168                switch ( $column_name ) {
    163169                    case 'cb': ?>
     
    249255
    250256                    default: ?>
    251                         <td><?php do_action( 'manage_users_custom_column', $column_name, $user->ID ); ?></td>
     257                        <td><?php echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID ); ?></td>
    252258                    <?php
    253259                    break;
  • trunk/wp-admin/includes/class-wp-users-list-table.php

    r16205 r16354  
    215215        }
    216216        $role_name = isset( $wp_roles->role_names[$role] ) ? translate_user_role( $wp_roles->role_names[$role] ) : __( 'None' );
     217        $avatar = get_avatar( $user_object->ID, 32 );
     218
    217219        $r = "<tr id='user-$user_object->ID'$style>";
    218         $avatar = get_avatar( $user_object->ID, 32 );
    219220
    220221        list( $columns, $hidden ) = $this->get_column_info();
Note: See TracChangeset for help on using the changeset viewer.