mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-25 09:28:42 +00:00
Properly account for columns shown in the list table display_rows_or_placeholder methods. props garyc40, fixes #16279.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7061e7efe0
commit
8dc4329246
@ -771,7 +771,8 @@ class WP_List_Table {
|
||||
if ( $this->has_items() ) {
|
||||
$this->display_rows();
|
||||
} else {
|
||||
echo '<tr class="no-items"><td colspan="2">';
|
||||
list( $columns, $hidden ) = $this->get_column_info();
|
||||
echo '<tr class="no-items"><td class="colspanchange" colspan="' . ( count( $columns ) - count( array_filter( $hidden ) ) ) . '">';
|
||||
$this->no_items();
|
||||
echo '</td></tr>';
|
||||
}
|
||||
|
@ -163,7 +163,8 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
if ( empty( $terms ) ) {
|
||||
echo '<tr class="no-items"><td colspan="2">';
|
||||
list( $columns, $hidden ) = $this->get_column_info();
|
||||
echo '<tr class="no-items"><td class="colspanchange" colspan="' . ( count( $columns ) - count( array_filter( $hidden ) ) ) . '">';
|
||||
$this->no_items();
|
||||
echo '</td></tr>';
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user