Comments List Table:
* In a view that initially has comments, but they get removed due to user actions: show the `No Items` row instead of bombing out and showing nothing (which looks broken) * To accomplish this, in `WP_Comments_List_Table::display()`: call `->display_rows_or_placeholder()` instead of `->display()` * Listen for the end of row `.fadeOut()`s if necessary using jQuery Promises Fixes #11200. Built from https://develop.svn.wordpress.org/trunk@33657 git-svn-id: http://core.svn.wordpress.org/trunk@33624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -409,7 +409,10 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
</tbody>
|
||||
|
||||
<tbody id="the-extra-comment-list" data-wp-lists="list:comment" style="display: none;">
|
||||
<?php $this->items = $this->extra_items; $this->display_rows(); ?>
|
||||
<?php
|
||||
$this->items = $this->extra_items;
|
||||
$this->display_rows_or_placeholder();
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
|
||||
Reference in New Issue
Block a user