Make WordPress Core


Ignore:
Timestamp:
01/21/2011 07:39:21 AM (14 years ago)
Author:
nacin
Message:

Use get_column_count() instead of manual logic. props scribu, fixes #16279.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-terms-list-table.php

    r17339 r17342  
    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>';
Note: See TracChangeset for help on using the changeset viewer.