From 5777900e022c44fd24e4631a34c632afa46637f3 Mon Sep 17 00:00:00 2001 From: ryan <ryan@1a063a9b-81f0-0310-95a4-ce76da25c4cd> Date: Tue, 3 Mar 2009 17:25:31 +0000 Subject: [PATCH] Add media_row_actions filter. Props johnbillion. fixes #9172 git-svn-id: http://svn.automattic.com/wordpress/trunk@10686 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upload.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 99302eaea1..f328c8a57e 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -344,6 +344,7 @@ foreach ($arc_result as $arc_row) { $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>'; if ( current_user_can('edit_post', $post->ID) ) $actions['attach'] = '<a href="#the-list" onclick="findPosts.open(\'media[]\',\''.$post->ID.'\');return false;">'.__('Attach').'</a>'; + $actions = apply_filters( 'media_row_actions', $actions, $post ); $action_count = count($actions); $i = 0; foreach ( $actions as $action => $link ) {