[wp-trac] [WordPress Trac] #16031: Bulk actions: Reactivate bulk actions hook + add hander hook for all admin screens
WordPress Trac
noreply at wordpress.org
Thu Jan 28 04:04:04 UTC 2016
#16031: Bulk actions: Reactivate bulk actions hook + add hander hook for all admin
screens
----------------------------+-----------------------------
Reporter: Veraxus | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Administration | Version: 3.1
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
----------------------------+-----------------------------
Comment (by Veraxus):
Some thoughts on having `handle_bulk_actions-` and
`after_handle_bulk_actions_sendback_link-` as separate hooks...
Pros:
* Clear separation of purpose.
* Can potentially tweak the sendback url without a bulk action check.
Cons:
* Would be forced to use `$GLOBALS` to pass bulk action status from
`handle_bulk_actions-` to `after_handle_bulk_actions_sendback_link-`,
which seems a little hinky.
The alternative is combining the two into a single hook...
{{{
$redirect_to = apply_filters("handle_bulk_action-{$current_screen->id}",
$sendback_link, $post_ids, $action );
}}}
Thoughts?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16031#comment:77>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list