mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-07 10:40:11 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@49190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -259,7 +259,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @return string[] Array of bulk action labels keyed by their action.
|
||||
* @return array Array of bulk action labels keyed by their action.
|
||||
*/
|
||||
protected function get_bulk_actions() {
|
||||
$actions = array();
|
||||
|
||||
Reference in New Issue
Block a user