From 995576fbdccb0ae7e8e2da866e2119b466ae26dd Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 27 Jan 2010 14:44:47 +0000 Subject: [PATCH] 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 --- wp-admin/edit-attachment-rows.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php index 1b972a9f94..b3d2b5be46 100644 --- a/wp-admin/edit-attachment-rows.php +++ b/wp-admin/edit-attachment-rows.php @@ -101,8 +101,10 @@ foreach ($posts_columns as $column_name => $column_display_name ) { $actions['delete'] = "ID) . "'>" . __('Delete Permanently') . ""; } } - if ( !$is_trash ) + if ( !$is_trash ) { + $title =_draft_or_post_title($post->post_parent); $actions['view'] = '' . __('View') . ''; + } $actions = apply_filters( 'media_row_actions', $actions, $post ); $action_count = count($actions); $i = 0;