WordPress.org

Make WordPress Core

Changeset 12221


Ignore:
Timestamp:
11/19/09 17:46:07 (4 years ago)
Author:
ryan
Message:

Add media_row_actions filter. Props holizz. fixes #9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-attachment-rows.php

    r12196 r12221  
    102102        if ( !$is_trash ) 
    103103            $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 
     104        $actions = apply_filters( 'media_row_actions', $actions, $post ); 
    104105        $action_count = count($actions); 
    105106        $i = 0; 
Note: See TracChangeset for help on using the changeset viewer.