Make WordPress Core


Ignore:
Timestamp:
06/10/2015 07:30:22 PM (10 years ago)
Author:
helen
Message:

List tables:

Since the primary column is not going to be alterable for plugins and MS themes, we don't need to check in on it.

see #25408.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r32686 r32723  
    439439                $style = ' style="display:none;"';
    440440
    441             $extra_class = '';
    442             if ( $primary === $column_name ) {
    443                 $extra_class = ' column-primary';
    444             }
    445 
    446441            switch ( $column_name ) {
    447442                case 'cb':
     
    449444                    break;
    450445                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);
    455448                    echo "</td>";
    456449                    break;
    457450                case 'description':
    458                     echo "<td class='column-description desc{$extra_class}'$style>";
     451                    echo "<td class='column-description desc'$style>";
    459452                    if ( $theme->errors() ) {
    460453                        $pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : '';
     
    491484
    492485                    echo '</div>';
    493                     if ( $primary === $column_name ) {
    494                         echo $this->row_actions($actions, true);
    495                     }
    496486                    echo '</td>';
    497487                    break;
    498488
    499489                default:
    500                     echo "<td class='$column_name column-$column_name{$extra_class}'$style>";
     490                    echo "<td class='$column_name column-$column_name'$style>";
    501491
    502492                    /**
     
    511501                    do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme );
    512502
    513                     if ( $primary === $column_name ) {
    514                         echo $this->row_actions($actions, true);
    515                     }
    516503                    echo "</td>";
    517504            }
Note: See TracChangeset for help on using the changeset viewer.