Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#15117 closed enhancement (fixed)

screen context should be passed to favorite_actions filter

Reported by: whoismanu Owned by:
Priority: normal Milestone: 3.1
Component: Plugins Version: 3.1
Severity: normal Keywords: favorite_actions, filter
Cc: whoismanu

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)

  • Resolution set to fixed
  • Status changed from new to closed

(In [15802]) Pass screen context to favorite_actions filter. props whoismanu, fixes #15117.

  • Milestone changed from Awaiting Review to 3.1
Note: See TracTickets for help on using tickets.