WordPress.org

Make WordPress Core

Ticket #10571: edit-attachment-rows.php.diff

File edit-attachment-rows.php.diff, 861 bytes (added by chdorner, 6 years ago)
  • edit-attachment-rows.php

     
    9999                        if ( $is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) 
    100100                                $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>"; 
    101101                } 
    102                 if ( !$is_trash ) 
     102                if ( !$is_trash ) { 
     103                        $title =_draft_or_post_title($post->post_parent); 
    103104                        $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 
     105                } 
    104106                $actions = apply_filters( 'media_row_actions', $actions, $post ); 
    105107                $action_count = count($actions); 
    106108                $i = 0;