Make WordPress Core

Changeset 10686


Ignore:
Timestamp:
03/03/2009 05:25:31 PM (16 years ago)
Author:
ryan
Message:

Add media_row_actions filter. Props johnbillion. fixes #9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r10680 r10686  
    345345        if ( current_user_can('edit_post', $post->ID) )
    346346            $actions['attach'] = '<a href="#the-list" onclick="findPosts.open(\'media[]\',\''.$post->ID.'\');return false;">'.__('Attach').'</a>';
     347        $actions = apply_filters( 'media_row_actions', $actions, $post );
    347348        $action_count = count($actions);
    348349        $i = 0;
Note: See TracChangeset for help on using the changeset viewer.