#15117 closed enhancement (fixed)
screen context should be passed to favorite_actions filter
Reported by: | whoismanu | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Plugins | Keywords: | favorite_actions, filter |
Focuses: | Cc: |
Description
currently, the favorite_actions filter is called like this in wp-admin/includes/template.php :
$actions = apply_filters('favorite_actions', $actions);
i think it would be better to also pass context information about the current screen along (e.g., by also passing $screen in addition to $action). otherwise, a plugin has no means of adjusting what it adds to the menu based on the current context.
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [15802]) Pass screen context to favorite_actions filter. props whoismanu, fixes #15117.