Make WordPress Core


Ignore:
Timestamp:
11/14/2010 06:00:09 PM (16 years ago)
Author:
scribu
Message:

Introduce WP_List_Table::get_column_count() and take care of update notice <tr>. Props ocean90 for initial patch. Fixes #15318

File:
1 edited

Legend:

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

    r16350 r16368  
    548548
    549549        return $this->_column_headers;
     550    }
     551
     552    /**
     553     * Return number of visible columns
     554     *
     555     * @since 3.1.0
     556     * @access public
     557     *
     558     * @return int
     559     */
     560    function get_column_count() {
     561        list ( $columns, $hidden ) = $this->get_column_info();
     562        $hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) );
     563        return count( $columns ) - count( $hidden );
    550564    }
    551565
Note: See TracChangeset for help on using the changeset viewer.