Properly account for columns shown in the list table display_rows_or_placeholder methods. props garyc40, fixes #16279.
git-svn-id: https://develop.svn.wordpress.org/trunk@17339 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
28e3e0a809
commit
e8040ea42d
@ -771,7 +771,8 @@ class WP_List_Table {
|
|||||||
if ( $this->has_items() ) {
|
if ( $this->has_items() ) {
|
||||||
$this->display_rows();
|
$this->display_rows();
|
||||||
} else {
|
} 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();
|
$this->no_items();
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,8 @@ class WP_Terms_List_Table extends WP_List_Table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( empty( $terms ) ) {
|
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();
|
$this->no_items();
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user