Changeset 32723
- Timestamp:
- 06/10/2015 07:30:22 PM (10 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r32686 r32723 439 439 $style = ' style="display:none;"'; 440 440 441 $extra_class = '';442 if ( $primary === $column_name ) {443 $extra_class = ' column-primary';444 }445 446 441 switch ( $column_name ) { 447 442 case 'cb': … … 449 444 break; 450 445 case 'name': 451 echo "<td class='theme-title{$extra_class}'$style><strong>" . $theme->display('Name') . "</strong>"; 452 if ( $primary === $column_name ) { 453 echo $this->row_actions($actions, true); 454 } 446 echo "<td class='theme-title column-primary'$style><strong>" . $theme->display('Name') . "</strong>"; 447 echo $this->row_actions($actions, true); 455 448 echo "</td>"; 456 449 break; 457 450 case 'description': 458 echo "<td class='column-description desc {$extra_class}'$style>";451 echo "<td class='column-description desc'$style>"; 459 452 if ( $theme->errors() ) { 460 453 $pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : ''; … … 491 484 492 485 echo '</div>'; 493 if ( $primary === $column_name ) {494 echo $this->row_actions($actions, true);495 }496 486 echo '</td>'; 497 487 break; 498 488 499 489 default: 500 echo "<td class='$column_name column-$column_name {$extra_class}'$style>";490 echo "<td class='$column_name column-$column_name'$style>"; 501 491 502 492 /** … … 511 501 do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme ); 512 502 513 if ( $primary === $column_name ) {514 echo $this->row_actions($actions, true);515 }516 503 echo "</td>"; 517 504 } -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r32686 r32723 582 582 list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); 583 583 584 $extra_class = ' column-primary';585 586 584 foreach ( $columns as $column_name => $column_display_name ) { 587 585 $style = ''; … … 595 593 break; 596 594 case 'name': 597 if ( $primary === $column_name || ! isset( $columns[ $primary ] ) ) { 598 echo "<td class='plugin-title $extra_class'$style><strong>$plugin_name</strong>"; 599 echo $this->row_actions( $actions, true ); 600 } else { 601 echo "<td class='plugin-title'$style><strong>$plugin_name</strong>"; 602 } 595 echo "<td class='plugin-title column-primary'$style><strong>$plugin_name</strong>"; 596 echo $this->row_actions( $actions, true ); 603 597 echo "</td>"; 604 598 break; 605 599 case 'description': 606 600 $classes = 'column-description desc'; 607 if ( $primary === $column_name ) {608 $classes .= " $extra_class";609 }610 601 611 602 echo "<td class='$classes'$style> … … 656 647 echo implode( ' | ', $plugin_meta ); 657 648 658 if ( $primary === $column_name ) {659 echo $this->row_actions( $actions, true );660 }661 649 echo "</div></td>"; 662 650 break; 663 651 default: 664 652 $classes = "$column_name column-$column_name$class"; 665 if ( $primary === $column_name ) {666 $classes .= " $extra_class";667 }668 653 669 654 echo "<td class='$classes'$style>"; … … 680 665 do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data ); 681 666 682 if ( $primary === $column_name ) {683 echo $this->row_actions( $actions, true );684 }685 667 echo "</td>"; 686 668 } … … 725 707 * @access protected 726 708 * 727 * @return string Unalterable name for the primary column, in this case, ' plugin'.709 * @return string Unalterable name for the primary column, in this case, 'name'. 728 710 */ 729 711 protected function get_primary_column_name() { 730 return ' plugin';712 return 'name'; 731 713 } 732 714 }
Note: See TracChangeset
for help on using the changeset viewer.