Make WordPress Core


Ignore:
Timestamp:
08/04/2020 03:55:25 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Comments: Use the existing static variable instead of calling ::has_items() again in WP_Comments_List_Table::extra_tablenav().

Additionally, removed unnecessary esc_html() on the Filter button label. Core translations are considered safe, and this label is not escaped in any other instance.

Props whyisjake, SergeyBiryukov.
Fixes #40188.

File:
1 edited

Legend:

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

    r47595 r48722  
    116116
    117117            echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>';
     118
    118119            wp_dropdown_categories( $dropdown_options );
     120
    119121            submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    120122            ?>
Note: See TracChangeset for help on using the changeset viewer.