Make WordPress Core


Ignore:
Timestamp:
06/10/2015 07:46:39 PM (10 years ago)
Author:
helen
Message:

List tables: Use a class instead of inline styles for hidden columns.

fixes #32608.

File:
1 edited

Legend:

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

    r32717 r32724  
    416416            }
    417417
    418             $style = '';
    419418            if ( in_array( $column_name, $hidden ) ) {
    420                 $style = ' style="display:none;"';
    421             }
    422 
    423             $attributes = "class='$classes'$style";
     419                $classes .= ' hidden';
     420            }
     421
     422            $attributes = "class='$classes'";
    424423
    425424            if ( 'cb' === $column_name ) {
Note: See TracChangeset for help on using the changeset viewer.