Fix attachment view link title attribute. Props chdorner. fixes #10571

git-svn-id: https://develop.svn.wordpress.org/trunk@12876 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-01-27 14:44:47 +00:00
parent 9d44dc664c
commit 995576fbdc
1 changed files with 3 additions and 1 deletions

View File

@ -101,8 +101,10 @@ foreach ($posts_columns as $column_name => $column_display_name ) {
$actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>";
}
}
if ( !$is_trash )
if ( !$is_trash ) {
$title =_draft_or_post_title($post->post_parent);
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('View') . '</a>';
}
$actions = apply_filters( 'media_row_actions', $actions, $post );
$action_count = count($actions);
$i = 0;