In WP_List_Table::display_rows_or_placeholder()
, the call to get_column_info()
in unnecessary and unused. The call to get_column_count()
immediately after makes the same call internally.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28279 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7839dd671c
commit
555937dc43
@ -841,7 +841,6 @@ class WP_List_Table {
|
|||||||
if ( $this->has_items() ) {
|
if ( $this->has_items() ) {
|
||||||
$this->display_rows();
|
$this->display_rows();
|
||||||
} else {
|
} else {
|
||||||
list( $columns, $hidden ) = $this->get_column_info();
|
|
||||||
echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
|
echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
|
||||||
$this->no_items();
|
$this->no_items();
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
|
Loading…
Reference in New Issue
Block a user