From 51a0906688ac670c5209eca6296a063d71027422 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 9 Aug 2009 10:58:41 +0000 Subject: [PATCH] Fix notice when trying to view comments due to Trash implementation. git-svn-id: https://develop.svn.wordpress.org/trunk@11793 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 9baf031da8..36954cf584 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -44,7 +44,7 @@ case 'editcomment' : if ( !current_user_can('edit_post', $comment->comment_post_ID) ) comment_footer_die( __('You are not allowed to edit comments on this post.') ); - if ( 'trash' == $comment->comment_status ) + 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.') ); $comment = get_comment_to_edit( $comment_id );