Skip to content

Commit

Permalink
Allow comment.php?action=editcomment to be accessible for a comment t…
Browse files Browse the repository at this point in the history
…hat is spam. props josephscott, fixes #19977, see #18340.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Feb 7, 2012
1 parent 391fd02 commit 2f9f7e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions wp-admin/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ function comment_footer_die( $msg ) {
if ( 'trash' == $comment->comment_approved )
comment_footer_die( __('This comment is in the Trash. Please move it out of the Trash if you want to edit it.') );

if ( 'spam' == $comment->comment_approved )
comment_footer_die( __('This comment is marked as Spam. Please mark it as Not Spam if you want to edit it.') );

$comment = get_comment_to_edit( $comment_id );

include('./edit-form-comment.php');
Expand Down

0 comments on commit 2f9f7e3

Please sign in to comment.