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-terms-list-table.php

    r16365 r16368  
    309309        if ( ! current_user_can( $tax->cap->edit_terms ) )
    310310            return;
    311 
    312         list( $columns, $hidden ) = $this->get_column_info();
    313 
    314         $col_count = count( $columns ) - count( $hidden );
    315         ?>
     311?>
    316312
    317313    <form method="get" action=""><table style="display: none"><tbody id="inlineedit">
    318         <tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $col_count; ?>">
     314        <tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
    319315
    320316            <fieldset><div class="inline-edit-col">
     
    331327                </label>
    332328    <?php } ?>
    333 
    334329            </div></fieldset>
    335330    <?php
    336331
    337332        $core_columns = array( 'cb' => true, 'description' => true, 'name' => true, 'slug' => true, 'posts' => true );
     333
     334        list( $columns ) = $this->get_column_info();
    338335
    339336        foreach ( $columns as $column_name => $column_display_name ) {
Note: See TracChangeset for help on using the changeset viewer.