[wp-trac] [WordPress Trac] #11441: Comment moderation AYS should provide feedback on comment's current status

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 5 15:54:14 UTC 2010


#11441: Comment moderation AYS should provide feedback on comment's current status
-------------------------+--------------------------------------------------
 Reporter:  nacin        |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Comments     |     Version:  2.9      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
Changes (by nacin):

  * keywords:  2nd-opinion => has-patch


Comment:

 First pass on this:
  - When moderating a comment that is not unapproved, you get a message
 letting you know that the comment is currently approved, in trash, or in
 spam.

  - If you try to moderate a comment that doesn't exist (such as if it was
 deleted), you get kicked back out to edit-comments.php with an error.
 (Currently strands you with wp_die()).

  - If you don't have permissions to moderate comments or edit the
 particular post, it kicks you back out to edit-comments.php with an error.
 (Currently strands you with comment_footer_die()).

  - If you try to approve/trash/spam a comment that is already
 approved/trashed/spammed, it kicks you back out to edit-comments.php with
 a friendly message.

  - Incidentally, cleans up some repetitive code in comment.php (and
 standardizes some messages and redirects).

  - Also fixes a notice by adding $hook_suffix as a global in
 comment_footer_die().

 What this doesn't do is bullet point 2 in the ticket description
 (untrash/unspam a comment that is trashed/spammed before performing
 another action). This doesn't occur now so I feel it is outside the scope
 of this enhancement. I will probably open a new ticket for that as
 suggested by azaozz anyway in #11442.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11441#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list