[wp-trac] [WordPress Trac] #19278: Allow WP_List_Table ::get_bulk_items() to receive a nested array and output optgroups

WordPress Trac noreply at wordpress.org
Sun Oct 18 16:20:22 UTC 2020


#19278: Allow WP_List_Table ::get_bulk_items() to receive a nested array and output
optgroups
---------------------------------------------+-----------------------------
 Reporter:  goldenapples                     |       Owner:  johnbillion
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  5.6
Component:  Administration                   |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch commit has-unit-tests  |     Focuses:  ui,
                                             |  administration
---------------------------------------------+-----------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49190" 49190]:
 {{{
 #!CommitTicketReference repository="" revision="49190"
 Administration: Allow `WP_List_Table::get_bulk_items()` to receive a
 nested array in order to output optgroups.

 The allowed format for bulk actions is now an associative array where each
 element represents either a top level option value and label, or an array
 representing an optgroup and its options.

 For a standard option, the array element key is the field value and the
 array element value is the field label.

 For an optgroup, the array element key is the label and the array element
 value is an associative array of options as above.

 Props goldenapples, mattkeys, valentinbora, davidbaumwald

 Fixes #19278
 }}}

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


More information about the wp-trac mailing list