Add media_row_actions filter. Props johnbillion. fixes #9172

git-svn-id: http://svn.automattic.com/wordpress/trunk@10686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-03-03 17:25:31 +00:00
parent 5d3a29dacd
commit 5777900e02
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) {