Changeset 32724
- Timestamp:
- 06/10/2015 07:46:39 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r32662 r32724 182 182 } 183 183 184 $style = '';185 184 if ( in_array( $column_name, $hidden ) ) { 186 $ style = ' style="display:none;"';185 $classes .= ' hidden'; 187 186 } 188 187 189 $attributes = "class='$classes' $style";188 $attributes = "class='$classes'"; 190 189 191 190 if ( 'cb' === $column_name ) { -
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 ) { -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r32688 r32724 341 341 } 342 342 343 $style = '';344 343 if ( in_array( $column_name, $hidden ) ) { 345 $ style = ' style="display:none;"';346 } 347 348 $attributes = "class='$classes' $style";344 $classes .= ' hidden'; 345 } 346 347 $attributes = "class='$classes'"; 349 348 350 349 if ( 'cb' === $column_name ) { -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r32719 r32724 273 273 } 274 274 275 $style = '';276 275 if ( in_array( $column_name, $hidden ) ) { 277 $ style = ' style="display:none;"';278 } 279 280 $attributes = "class='$classes' $style";276 $classes .= ' hidden'; 277 } 278 279 $attributes = "class='$classes'"; 281 280 282 281 if ( 'cb' === $column_name ) { -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r32723 r32724 435 435 436 436 foreach ( $columns as $column_name => $column_display_name ) { 437 $style = ''; 438 if ( in_array( $column_name, $hidden ) ) 439 $style = ' style="display:none;"'; 437 $extra_classes = ''; 438 if ( in_array( $column_name, $hidden ) ) { 439 $extra_classes .= ' hidden'; 440 } 440 441 441 442 switch ( $column_name ) { … … 444 445 break; 445 446 case 'name': 446 echo "<td class='theme-title column-primary '$style><strong>" . $theme->display('Name') . "</strong>";447 echo "<td class='theme-title column-primary{$extra_classes}'><strong>" . $theme->display('Name') . "</strong>"; 447 448 echo $this->row_actions($actions, true); 448 449 echo "</td>"; 449 450 break; 450 451 case 'description': 451 echo "<td class='column-description desc '$style>";452 echo "<td class='column-description desc{$extra_classes}'>"; 452 453 if ( $theme->errors() ) { 453 454 $pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : ''; … … 488 489 489 490 default: 490 echo "<td class='$column_name column-$column_name '$style>";491 echo "<td class='$column_name column-$column_name{$extra_classes}'>"; 491 492 492 493 /** -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r32666 r32724 209 209 } 210 210 211 $style = '';212 211 if ( in_array( $column_name, $hidden ) ) { 213 $ style = ' style="display:none;"';212 $classes .= ' hidden'; 214 213 } 215 214 216 $attributes = "class='$classes' $style";215 $attributes = "class='$classes'"; 217 216 218 217 if ( 'cb' === $column_name ){ -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r32723 r32724 583 583 584 584 foreach ( $columns as $column_name => $column_display_name ) { 585 $ style= '';585 $extra_classes = ''; 586 586 if ( in_array( $column_name, $hidden ) ) { 587 $ style = ' style="display:none;"';587 $extra_classes = ' hidden'; 588 588 } 589 589 … … 593 593 break; 594 594 case 'name': 595 echo "<td class='plugin-title column-primary' $style><strong>$plugin_name</strong>";595 echo "<td class='plugin-title column-primary'><strong>$plugin_name</strong>"; 596 596 echo $this->row_actions( $actions, true ); 597 597 echo "</td>"; … … 600 600 $classes = 'column-description desc'; 601 601 602 echo "<td class='$classes '$style>602 echo "<td class='$classes{$extra_classes}'> 603 603 <div class='plugin-description'>$description</div> 604 604 <div class='$class second plugin-version-author-uri'>"; … … 652 652 $classes = "$column_name column-$column_name$class"; 653 653 654 echo "<td class='$classes '$style>";654 echo "<td class='$classes{$extra_classes}'>"; 655 655 656 656 /** -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r32721 r32724 723 723 } 724 724 725 $style = '';726 725 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'"; 731 730 732 731 if ( 'cb' === $column_name ) { -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r32717 r32724 416 416 } 417 417 418 $style = '';419 418 if ( in_array( $column_name, $hidden ) ) { 420 $ style = ' style="display:none;"';421 } 422 423 $attributes = "class='$classes' $style";419 $classes .= ' hidden'; 420 } 421 422 $attributes = "class='$classes'"; 424 423 425 424 if ( 'cb' === $column_name ) { -
trunk/src/wp-admin/js/common.js
r32645 r32724 38 38 39 39 checked : function(column) { 40 $('.column-' + column). show();40 $('.column-' + column).removeClass( 'hidden' ); 41 41 this.colSpanChange(+1); 42 42 }, 43 43 44 44 unchecked : function(column) { 45 $('.column-' + column). hide();45 $('.column-' + column).addClass( 'hidden' ); 46 46 this.colSpanChange(-1); 47 47 },
Note: See TracChangeset
for help on using the changeset viewer.