WordPress.org

Make WordPress Core

Changeset 17342


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

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

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

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

    r17339 r17342  
    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>';
  • 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.