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

fixes #32608.

Built from https://develop.svn.wordpress.org/trunk@32724


git-svn-id: http://core.svn.wordpress.org/trunk@32694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí
2015-06-10 19:47:27 +00:00
parent 06ebd0a2aa
commit c87224eaf6
12 changed files with 34 additions and 42 deletions

View File

@@ -181,12 +181,11 @@ class WP_Links_List_Table extends WP_List_Table {
$classes .= ' has-row-actions column-primary';
}
$style = '';
if ( in_array( $column_name, $hidden ) ) {
$style = ' style="display:none;"';
$classes .= ' hidden';
}
$attributes = "class='$classes'$style";
$attributes = "class='$classes'";
if ( 'cb' === $column_name ) {
?>