- Timestamp:
- 05/29/2015 02:40:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r32642 r32644 231 231 232 232 /** 233 * Get name of default primary column 234 * 235 * @since 4.3.0 236 * @access protected 237 * 238 * @return string 239 */ 240 protected function get_default_primary_column_name() { 241 return 'name'; 242 } 243 244 /** 233 245 * 234 246 * @global array $totals … … 401 413 echo "<tr id='$id' class='$class'>"; 402 414 403 list( $columns, $hidden ) = $this->get_column_info();415 list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); 404 416 405 417 foreach ( $columns as $column_name => $column_display_name ) { … … 414 426 case 'name': 415 427 echo "<td class='theme-title'$style><strong>" . $theme->display('Name') . "</strong>"; 416 echo $this->row_actions( $actions, true ); 428 if ( $primary === $column_name ) { 429 echo $this->row_actions($actions, true); 430 } 417 431 echo "</td>"; 418 432 break; … … 452 466 echo implode( ' | ', $theme_meta ); 453 467 454 echo "</div></td>"; 468 echo '</div>'; 469 if ( $primary === $column_name ) { 470 echo $this->row_actions($actions, true); 471 } 472 echo '</td>'; 455 473 break; 456 474 … … 468 486 */ 469 487 do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme ); 488 489 if ( $primary === $column_name ) { 490 echo $this->row_actions($actions, true); 491 } 470 492 echo "</td>"; 471 493 }
Note: See TracChangeset
for help on using the changeset viewer.