Make WordPress Core


Ignore:
Timestamp:
01/20/2011 10:19:34 PM (15 years ago)
Author:
nacin
Message:

Properly account for columns shown in the list table display_rows_or_placeholder methods. props garyc40, fixes #16279.

File:
1 edited

Legend:

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

    r17322 r17339  
    164164
    165165        if ( empty( $terms ) ) {
    166             echo '<tr class="no-items"><td colspan="2">';
     166            list( $columns, $hidden ) = $this->get_column_info();
     167            echo '<tr class="no-items"><td class="colspanchange" colspan="' . ( count( $columns ) - count( array_filter( $hidden ) ) ) . '">';
    167168            $this->no_items();
    168169            echo '</td></tr>';
Note: See TracChangeset for help on using the changeset viewer.