Changeset 32724 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 06/10/2015 07:46:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r32722 r32724 947 947 $class = array( 'manage-column', "column-$column_key" ); 948 948 949 $style = ''; 950 if ( in_array( $column_key, $hidden ) ) 951 $style = 'display:none;'; 952 953 $style = ' style="' . $style . '"'; 949 if ( in_array( $column_key, $hidden ) ) { 950 $class[] = 'hidden'; 951 } 954 952 955 953 if ( 'cb' == $column_key ) … … 979 977 $class = "class='" . join( ' ', $class ) . "'"; 980 978 981 echo "<th scope='col' $id $class $style>$column_display_name</th>";979 echo "<th scope='col' $id $class>$column_display_name</th>"; 982 980 } 983 981 } … … 1138 1136 } 1139 1137 1140 $style = '';1141 1138 if ( in_array( $column_name, $hidden ) ) { 1142 $ style = ' style="display:none;"';1139 $classes .= ' hidden'; 1143 1140 } 1144 1141 1145 $attributes = "class='$classes' $style";1142 $attributes = "class='$classes'"; 1146 1143 1147 1144 if ( 'cb' == $column_name ) {
Note: See TracChangeset
for help on using the changeset viewer.