Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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:


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)

#1 @automattor
5 years ago

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

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

#2 @nacin
5 years ago

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