get_delete_post_link( $post->ID, '', true
),
/* translators: %s: Post title. */
esc_attr( sprintf( __( 'Delete “%s” permanently'
),
$title ) ),
__( 'Delete Permanently'
) );
} } if ( is_post_type_viewable( $post_type_object ) ) { if ( in_array( $post->post_status, array
( 'pending', 'draft', 'future'
), true
) ) { if ( $can_edit_post ) { $preview_link =
get_preview_post_link( $post );
$actions['view'
] =
sprintf( '<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
esc_url( $preview_link ),
/* translators: %s: Post title. */
esc_attr( sprintf( __( 'Preview “%s”'
),
$title ) ),
__( 'Preview'
) );
} } elseif ( 'trash' !==
$post->post_status
) { $actions['view'
] =
sprintf( '<a href="%s" rel="bookmark" aria-label="%s">%s</a>',