From 5d78454d4c32d8d0e9941f23da5e38da0531016f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 7 Feb 2012 19:13:30 +0000 Subject: [PATCH] Allow comment.php?action=editcomment to be accessible for a comment that is spam. props josephscott, fixes #19977, see #18340. git-svn-id: https://develop.svn.wordpress.org/trunk@19856 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/comment.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 6963f770cc..de5483e286 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -73,9 +73,6 @@ case 'editcomment' : 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');