[wp-trac] [WordPress Trac] #11260: Should be able to undo "Marking [comment] as Spam"
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 26 18:17:57 UTC 2009
#11260: Should be able to undo "Marking [comment] as Spam"
-----------------------------+----------------------------------------------
Reporter: lloydbudd | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 2.9
Component: Trash | Version: 2.9
Severity: normal | Keywords: Spam, Trash, Comments
-----------------------------+----------------------------------------------
Comment(by caesarsgrunt):
The patch implements undo in the ajax comment interface, but not without
js or for bulk.
One problem is that unlike with trash, the previous status of a spam
comment isn't stored. Rather than making undo always approve the comment,
which would be really confusing and annoying, I have made the js interface
check whether the comment is currently approved or not when spamming the
comment, and create a custom undo link based on this.
Even like this, I've had to modify admin-ajax.php and comment.php too, and
it feels a bit hacky. Furthermore, it will be difficult to extend to non-
js, and ''really'' difficult to extend to bulk.
I think I'll start again and just store the previous status for spam like
we do for trash.
But feel free to look at and comment on the interface of the current
patch...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11260#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list