[wp-trac] [WordPress Trac] #54181: Terms management screen shows bulk actions dropdown even if there are no terms

WordPress Trac noreply at wordpress.org
Fri Oct 8 00:36:33 UTC 2021


#54181: Terms management screen shows bulk actions dropdown even if there are no
terms
-------------------------------------------------+-------------------------
 Reporter:  swissspidy                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit      |     Focuses:
  has-screenshots                                |  administration
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51896" 51896]:
 {{{
 #!CommitTicketReference repository="" revision="51896"
 Taxonomy: Populate the `WP_Terms_List_Table::$items` property in
 `::prepare_items()`.

 This allows the parent `WP_List_Table::has_items()` method to work as
 expected, and the override in the child class can now be removed. It also
 makes the class more consistent with other list table classes.

 As a result of this change, the "Bulk actions" dropdown is no longer
 unnecessarily displayed if there are no terms.

 Follow-up to [15491], [17025], [17026].

 Props mattoakley, swissspidy, audrasjb, SergeyBiryukov.
 Fixes #54181.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54181#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list