- Timestamp:
- 06/10/2015 07:30:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.