Make WordPress Core


Ignore:
Timestamp:
12/12/2009 06:40:16 AM (16 years ago)
Author:
azaozz
Message:

Disable trash for attachments for now pending improvements in 3.0, fixes #11149

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-attachment-rows.php

    r12221 r12377  
    9595            if ( $is_trash )
    9696                $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=untrash&amp;post=$post->ID", 'untrash-post_' . $post->ID) . "'>" . __('Restore') . "</a>";
    97             elseif ( EMPTY_TRASH_DAYS )
     97            elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
    9898                $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID) . "'>" . __('Trash') . "</a>";
    99             if ( $is_trash || !EMPTY_TRASH_DAYS )
     99            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        }
Note: See TracChangeset for help on using the changeset viewer.