From b99372f363df89fcd7dbb560b60b6f87075d4ea5 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 27 Jan 2010 14:44:47 +0000 Subject: [PATCH] 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 --- 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;