Add media_row_actions filter. Props holizz. fixes #9172
git-svn-id: https://develop.svn.wordpress.org/trunk@12221 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
26193065a4
commit
0fa56163c8
|
@ -101,6 +101,7 @@ foreach ($posts_columns as $column_name => $column_display_name ) {
|
||||||
}
|
}
|
||||||
if ( !$is_trash )
|
if ( !$is_trash )
|
||||||
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||||
|
$actions = apply_filters( 'media_row_actions', $actions, $post );
|
||||||
$action_count = count($actions);
|
$action_count = count($actions);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
echo '<div class="row-actions">';
|
echo '<div class="row-actions">';
|
||||||
|
|
Loading…
Reference in New Issue