Make WordPress Core

Ticket #45028: 45028.diff

File 45028.diff, 797 bytes (added by shaneeckert, 6 years ago)

45028 Fix where extra items may be empty, which will prevent the table nav from displaying later.

  • src/wp-admin/includes/class-wp-comments-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php
    index 7d2068fc49..79f0b73473 100644
    a b class WP_Comments_List_Table extends WP_List_Table { 
    508508
    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>
    515521