[wp-trac] [WordPress Trac] #4529: "Trash" status for comments and posts
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 11 07:56:21 UTC 2009
#4529: "Trash" status for comments and posts
----------------------------+-----------------------------------------------
Reporter: markjaquith | Owner: caesarsgrunt
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 2.9
Component: Administration | Version:
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
Comment(by caesarsgrunt):
I agree that an undo feature should be added, but I think that this trash
status is needed ''as well''.[[BR]]
For a start, the concept of something which is deleted going to a trash
bin and being recoverable is familiar to most people as this is how many
other computer interfaces work.[[BR]]
But also, for an "undo" feature to work, the deleted comment has to be
kept at least until the next page load. My patch therefore provides a
large part of the backend for the undo feature.[[BR]]
I will add the undo feature to my patch later - this will be fairly easy.
Regarding the exact system for deleting comments after a specified time, I
suppose we could do it that way, but it would require a new column in the
comments database table, which would be more complex, and it would require
a script to check every comment every day to find out whether it should be
deleted, rather than just scheduling deletion for individual
comments.[[BR]]
Alternatively we could use a new row in the options table and just list
each deleted comment and the date when it was deleted, but this would
still require that a script be run every day even when there are no
comments to be deleted.
I might also make it so that when spam comments are deleted they skip the
trash altogether - this is how most email clients work, and additionally
it avoids the scheduling of a lot of deletions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/4529#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list