From 390bcdb27f3abe7809b9abe49c5b93af7fb2349c Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 14 Oct 2010 09:53:04 +0000 Subject: [PATCH] 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 --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 7a55aa95e4..afe881a9a7 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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 ) {