Pass screen context to favorite_actions filter. props whoismanu, fixes #15117.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-10-14 09:53:04 +00:00
parent 605476f2d0
commit 390bcdb27f
1 changed files with 1 additions and 1 deletions

View File

@ -1464,7 +1464,7 @@ function favorite_actions( $screen = null ) {
if ( isset($actions[$default_key]) )
unset($actions[$default_key]);
$actions = array_merge($default_action, $actions);
$actions = apply_filters('favorite_actions', $actions);
$actions = apply_filters( 'favorite_actions', $actions, $screen );
$allowed_actions = array();
foreach ( $actions as $action => $data ) {