Ticket #25408: 25408.19.diff
| File 25408.19.diff, 3.1 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/class-wp-ms-themes-list-table.php
245 245 } 246 246 247 247 /** 248 * Get the name of the defaultprimary column.248 * Get the name of the primary column. 249 249 * 250 250 * @since 4.3.0 251 251 * @access protected 252 252 * 253 * @return string Name of the defaultprimary column name, in this case, 'name'.253 * @return string Unalterable name of the primary column name, in this case, 'name'. 254 254 */ 255 protected function get_ default_primary_column_name() {255 protected function get_primary_column_name() { 256 256 return 'name'; 257 257 } 258 258 … … 438 438 if ( in_array( $column_name, $hidden ) ) 439 439 $style = ' style="display:none;"'; 440 440 441 $extra_class = ''; 442 if ( $primary === $column_name ) { 443 $extra_class = ' column-primary'; 444 } 445 441 446 switch ( $column_name ) { 442 447 case 'cb': 443 448 echo "<th scope='row' class='check-column'>$checkbox</th>"; 444 449 break; 445 450 case 'name': 446 echo "<td class='theme-title '$style><strong>" . $theme->display('Name') . "</strong>";451 echo "<td class='theme-title{$extra_class}'$style><strong>" . $theme->display('Name') . "</strong>"; 447 452 if ( $primary === $column_name ) { 448 453 echo $this->row_actions($actions, true); 449 454 } 450 455 echo "</td>"; 451 456 break; 452 457 case 'description': 453 echo "<td class='column-description desc '$style>";458 echo "<td class='column-description desc{$extra_class}'$style>"; 454 459 if ( $theme->errors() ) { 455 460 $pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : ''; 456 461 echo '<p><strong class="attention">' . $pre . $theme->errors()->get_error_message() . '</strong></p>'; … … 492 497 break; 493 498 494 499 default: 495 echo "<td class='$column_name column-$column_name '$style>";500 echo "<td class='$column_name column-$column_name{$extra_class}'$style>"; 496 501 497 502 /** 498 503 * Fires inside each custom column of the Multisite themes list table. -
src/wp-admin/includes/class-wp-plugins-list-table.php
581 581 582 582 list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); 583 583 584 $extra_class = ' has-row-actionscolumn-primary';584 $extra_class = ' column-primary'; 585 585 586 586 foreach ( $columns as $column_name => $column_display_name ) { 587 587 $style = ''; … … 719 719 } 720 720 721 721 /** 722 * Get the name of defaultprimary column for this specific list table.722 * Get the name of primary column for this specific list table. 723 723 * 724 724 * @since 4.3.0 725 725 * @access protected 726 726 * 727 * @return string Name for the defaultprimary column, in this case, 'plugin'.727 * @return string Unalterable name for the primary column, in this case, 'plugin'. 728 728 */ 729 protected function get_ default_primary_column_name() {729 protected function get_primary_column_name() { 730 730 return 'plugin'; 731 731 } 732 732 }