[wp-trac] [WordPress Trac] #62430: Bulk Action: Cannot submit bulk action if no items are selected
WordPress Trac
noreply at wordpress.org
Tue Nov 19 18:58:47 UTC 2024
#62430: Bulk Action: Cannot submit bulk action if no items are selected
----------------------------+------------------------
Reporter: jcutler | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.7.1
Component: Administration | Version: 6.7
Severity: blocker | Resolution:
Keywords: | Focuses:
----------------------------+------------------------
Comment (by joedolson):
I'm seeing two reasonable paths forward on this:
1) We can add a flag such as `data-allow-empty` that can be added to an
`option` and will prevent the error flag.
2) You can add a behavior that auto selects the available checkboxes when
your option is selected.
In either case, you'd need to make a change to your plugin; I'm inclined
to think it makes more sense for you to select items when your option is
selected. Your action is presumably already bypassing the selection, so
whether all items are selected or not is relatively moot.
And this is really not an API change - the API never performed any action
when no posts were selected; this is simply making it apparent that no
action is being performed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62430#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list