From 2e864d29adfa5d7dac11d600dcacd03d6bc49532 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@15802 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) {