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:
parent
605476f2d0
commit
390bcdb27f
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue