Make WordPress Core

Ticket #16279: 16279.diff

File 16279.diff, 1.3 KB (added by scribu, 14 years ago)

Use get_column_count()

  • wp-admin/includes/class-wp-terms-list-table.php

     
    164164
    165165                if ( empty( $terms ) ) {
    166166                        list( $columns, $hidden ) = $this->get_column_info();
    167                         echo '<tr class="no-items"><td class="colspanchange" colspan="' . ( count( $columns ) - count( array_filter( $hidden ) ) ) . '">';
     167                        echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
    168168                        $this->no_items();
    169169                        echo '</td></tr>';
    170170                } else {
  • wp-admin/includes/class-wp-list-table.php

     
    772772                        $this->display_rows();
    773773                } else {
    774774                        list( $columns, $hidden ) = $this->get_column_info();
    775                         echo '<tr class="no-items"><td class="colspanchange" colspan="' . ( count( $columns ) - count( array_filter( $hidden ) ) ) . '">';
     775                        echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
    776776                        $this->no_items();
    777777                        echo '</td></tr>';
    778778                }