Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#15117 closed enhancement (fixed)

screen context should be passed to favorite_actions filter

Reported by: whoismanu's profile 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)

#1 @automattor
14 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
14 years ago

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