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

git-svn-id: http://svn.automattic.com/wordpress/trunk@12876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-01-27 14:44:47 +00:00
parent 8fbdf18a6b
commit b99372f363
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;