WordPress.org

Make WordPress Core

Changeset 48724


Ignore:
Timestamp:
08/04/2020 04:24:32 PM (8 weeks ago)
Author:
SergeyBiryukov
Message:

Comments: Restore the ::has_items() call in WP_Comments_List_Table::extra_tablenav() for now, until unit tests are updated accordingly.

Follow-up to [48722].

Fixes #40188. See #50815.

File:
1 edited

Legend:

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

    r48722 r48724  
    408408            $output = ob_get_clean();
    409409
    410             if ( ! empty( $output ) && $has_items ) {
     410            if ( ! empty( $output ) && $this->has_items() ) {
    411411                echo $output;
    412412                submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
Note: See TracChangeset for help on using the changeset viewer.