if ( 'trash' ===
$post->post_status
) { $actions['untrash'
] =
sprintf( '<a href="%s" aria-label="%s">%s</a>',
wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash',
$post->ID
) ), 'untrash-post_' .
$post->ID
),
/* translators: %s: Post title. */
esc_attr( sprintf( __( 'Restore “%s” from the Trash'
),
$title ) ),
__( 'Restore'
) );
} elseif ( EMPTY_TRASH_DAYS
) { $actions['trash'
] =
sprintf( '<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
get_delete_post_link( $post->ID
),
/* translators: %s: Post title. */
esc_attr( sprintf( __( 'Move “%s” to the Trash'
),
$title ) ),
_x( 'Trash', 'verb'
) );
} if ( 'trash' ===
$post->post_status || ! EMPTY_TRASH_DAYS
) { $actions['delete'
] =
sprintf( '<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
get_delete_post_link( $post->ID, '', true
),
/* translators: %s: Post title. */