mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
List tables: Use a class instead of inline styles for hidden columns.
fixes #32608. git-svn-id: https://develop.svn.wordpress.org/trunk@32724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -415,12 +415,11 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
$classes .= ' num'; // Special case for that column
|
||||
}
|
||||
|
||||
$style = '';
|
||||
if ( in_array( $column_name, $hidden ) ) {
|
||||
$style = ' style="display:none;"';
|
||||
$classes .= ' hidden';
|
||||
}
|
||||
|
||||
$attributes = "class='$classes'$style";
|
||||
$attributes = "class='$classes'";
|
||||
|
||||
if ( 'cb' === $column_name ) {
|
||||
$r .= "<th scope='row' class='check-column'>$checkbox</th>";
|
||||
|
||||
Reference in New Issue
Block a user