[wp-trac] [WordPress Trac] #15117: screen context should be passed to favorite_actions filter

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 14 09:50:33 UTC 2010


#15117: screen context should be passed to favorite_actions filter
-------------------------+--------------------------------------------------
 Reporter:  whoismanu    |       Owner:                          
     Type:  enhancement  |      Status:  new                     
 Priority:  normal       |   Milestone:  Awaiting Review         
Component:  Plugins      |     Version:  3.1                     
 Severity:  normal       |    Keywords:  favorite_actions, filter
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15117>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list