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:
@@ -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 ) {
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user