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/template.php

    r16278 r16368  
    332332    $wp_list_table = get_list_table('WP_Comments_List_Table');
    333333
    334     list ( $columns, $hidden ) = $wp_list_table->get_column_info();
    335     $hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) );
    336     $col_count = count($columns) - count($hidden);
    337 
    338334?>
    339335<form method="get" action="">
    340336<?php if ( $table_row ) : ?>
    341 <table style="display:none;"><tbody id="com-reply"><tr id="replyrow" style="display:none;"><td colspan="<?php echo $col_count; ?>">
     337<table style="display:none;"><tbody id="com-reply"><tr id="replyrow" style="display:none;"><td colspan="<?php echo $wp_list_table->get_column_count(); ?>" class="colspanchange">
    342338<?php else : ?>
    343339<div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;">
Note: See TracChangeset for help on using the changeset viewer.