Add media_row_actions filter. Props johnbillion. fixes #9172

git-svn-id: https://develop.svn.wordpress.org/trunk@10686 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-03 17:25:31 +00:00
parent 0a4022978b
commit 1a57debcdd
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 ) {