mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Fix placeholder issues when removing comments. props garyc40, fixes #15879.
git-svn-id: https://develop.svn.wordpress.org/trunk@17081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -844,7 +844,11 @@ class WP_List_Table {
|
||||
extract( $this->_pagination_args );
|
||||
|
||||
ob_start();
|
||||
$this->display_rows_or_placeholder();
|
||||
if ( ! empty( $_REQUEST['no_placeholder'] ) )
|
||||
$this->display_rows();
|
||||
else
|
||||
$this->display_rows_or_placeholder();
|
||||
|
||||
$rows = ob_get_clean();
|
||||
|
||||
$response = array( 'rows' => $rows );
|
||||
|
||||
@@ -228,6 +228,8 @@ setCommentsList = function() {
|
||||
args.offset = per_page - 1; // fetch only the last item of the next page
|
||||
}
|
||||
|
||||
args.no_placeholder = true;
|
||||
|
||||
args.paged ++;
|
||||
|
||||
listTable.fetch_list(args, function(response) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user