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-ms-sites-list-table.php

    r32719 r32724  
    273273                }
    274274
    275                 $style = '';
    276275                if ( in_array( $column_name, $hidden ) ) {
    277                     $style = ' style="display:none;"';
    278                 }
    279 
    280                 $attributes = "class='$classes'$style";
     276                    $classes .= ' hidden';
     277                }
     278
     279                $attributes = "class='$classes'";
    281280
    282281                if ( 'cb' === $column_name ) {
Note: See TracChangeset for help on using the changeset viewer.