X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/3f5685912e89eb3b0534acd85aa0946b1ca2bbe3..16b9f61a8ab25bd6c9fbfd0cea00c7bda22f6a71:/wp-admin/edit-attachment-rows.php
diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php
index eef8f0cf..1b972a9f 100644
--- a/wp-admin/edit-attachment-rows.php
+++ b/wp-admin/edit-attachment-rows.php
@@ -96,8 +96,10 @@ foreach ($posts_columns as $column_name => $column_display_name ) {
$actions['untrash'] = "ID) . "'>" . __('Restore') . "";
elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
$actions['trash'] = "ID) . "'>" . __('Trash') . "";
- if ( $is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH )
- $actions['delete'] = "ID) . "'>" . __('Delete Permanently') . "";
+ if ( $is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) {
+ $delete_ays = (!$is_trash && !MEDIA_TRASH) ? " onclick='return showNotice.warn();'" : '';
+ $actions['delete'] = "ID) . "'>" . __('Delete Permanently') . "";
+ }
}
if ( !$is_trash )
$actions['view'] = '' . __('View') . '';