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

    r32721 r32724  
    723723            }
    724724
    725             $style = '';
    726725            if ( in_array( $column_name, $hidden ) ) {
    727                 $style = ' style="display:none;"';
    728             }
    729 
    730             $attributes = "class='$classes'$style";
     726                $classes .= ' hidden';
     727            }
     728
     729            $attributes = "class='$classes'";
    731730
    732731            if ( 'cb' === $column_name ) {
Note: See TracChangeset for help on using the changeset viewer.