Fix notice when trying to view comments due to Trash implementation.

git-svn-id: http://svn.automattic.com/wordpress/trunk@11793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-08-09 10:58:41 +00:00
parent b54c6b91e3
commit 2d4728eb39
1 changed files with 1 additions and 1 deletions

View File

@ -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 );