[wp-trac] [WordPress Trac] #62430: Bulk Action: Cannot submit bulk action if no items are selected

WordPress Trac noreply at wordpress.org
Thu Nov 14 18:07:12 UTC 2024


#62430: Bulk Action: Cannot submit bulk action if no items are selected
----------------------------+-----------------------------
 Reporter:  jcutler         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  6.7
 Severity:  blocker         |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 There was a change made that does not allow bulk actions in wp_list_table
 to be processed if no items are selected. I have a plugin with many
 operations that do not require any items to be selected. This change
 breaks those operations.

 This appears to be the commit:

 https://github.com/WordPress/WordPress/commit/0a4679908b52e7274b942b2a0792b6e2ac28d99f

 Repro steps:
 Install plugin that allows bulk actions to be performed without selecting
 any items.
 In the admin area that uses the plugin(via wp_list_table), view the table.
 Select the bulk action that does not require item selection (i.e.
 "download-all").
 Click Apply

 Expected Results:
 Action is executed.

 Actual results:
 Admin notice displayed: "Please select at least one item to perform this
 action on."

 I have verified that WordPress 6.7 introduces this breaking change.

 I cannot update to WP 6.7 on my client's live site, so I have marked
 severity as blocker.

 Please advise as this change breaks my plugin.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62430>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list