diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 13a688cc91..5a783e38fb 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -771,7 +771,8 @@ class WP_List_Table { if ( $this->has_items() ) { $this->display_rows(); } else { - echo ''; + list( $columns, $hidden ) = $this->get_column_info(); + echo ''; $this->no_items(); echo ''; } diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php index b17e96dc45..14443bf6ac 100644 --- a/wp-admin/includes/class-wp-terms-list-table.php +++ b/wp-admin/includes/class-wp-terms-list-table.php @@ -163,7 +163,8 @@ class WP_Terms_List_Table extends WP_List_Table { } if ( empty( $terms ) ) { - echo ''; + list( $columns, $hidden ) = $this->get_column_info(); + echo ''; $this->no_items(); echo ''; } else {