Don't show edit links for spam comments. Props DH-Shredder. fixes #18340

git-svn-id: http://svn.automattic.com/wordpress/trunk@19296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2011-11-15 14:02:42 +00:00
parent c657c79258
commit 7f10cf4814
2 changed files with 5 additions and 3 deletions

View File

@@ -69,6 +69,9 @@ 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');