[wp-trac] [WordPress Trac] #21194: Delete attachment AJAX fails when EMPTY_TRASH_DAYS is set to 0 days
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 10 08:12:44 UTC 2012
#21194: Delete attachment AJAX fails when EMPTY_TRASH_DAYS is set to 0 days
---------------------------+------------------------------
Reporter: simonwheatley | Owner:
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 2.0
Severity: normal | Resolution:
Keywords: dev-feedback |
---------------------------+------------------------------
Comment (by c3mdigital):
It doesn't make sense to do a check for EMPTY_TRASH_DAYS in media.php
since media won't have trash unless MEDIA_TRASH is set to true.
If you have EMPTY_TRASH_DAYS set to 0 and MEDIA_TRASH set to true you
can't add media to the trash only delete it. The modified patch removes
the check for EMPTY_TRASH_DAYS.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21194#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list