$actions['delete'
] =
sprintf( '<a href="%s" class="submitdelete aria-button-if-js"%s aria-label="%s">%s</a>',
esc_url( wp_nonce_url( "post.php?action=delete&post=
$post->ID", 'delete-post_' .
$post->ID
) ),
$show_confirmation,
/* translators: %s: Attachment title. */
esc_attr( sprintf( __( 'Delete “%s” permanently'
),
$att_title ) ),
__( 'Delete Permanently'
) );
} } $attachment_url =
wp_get_attachment_url( $post->ID
);
if ( !
$this->is_trash
) { $permalink =
get_permalink( $post->ID
);
if ( $permalink ) { $actions['view'
] =
sprintf( '<a href="%s" aria-label="%s" rel="bookmark">%s</a>',
esc_url( $permalink ),
/* translators: %s: Attachment title. */
esc_attr( sprintf( __( 'View “%s”'
),
$att_title ) ),
__( 'View'
) );