Make WordPress Core

Changeset 43671


Ignore:
Timestamp:
10/03/2018 07:46:51 PM (6 years ago)
Author:
melchoyce
Message:

List Table: Restore the List Table items property to allow Bulk Actions to be properly determined.

This fixes the display of Bulk Actions where there exists only a single page of results.

Props shaneeckert, jobthomas, dd32.
Fixes #45028.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r43571 r43671  
    509509    <tbody id="the-extra-comment-list" data-wp-lists="list:comment" style="display: none;">
    510510        <?php
     511            /*
     512             * Back up the items to restore after printing the extra items markup.
     513             * The extra items may be empty, which will prevent the table nav from displaying later.
     514             */
     515            $items = $this->items;
    511516            $this->items = $this->extra_items;
    512517            $this->display_rows_or_placeholder();
     518            $this->items = $items;
    513519        ?>
    514520    </tbody>
Note: See TracChangeset for help on using the changeset viewer.