diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index 5fd308e357..e73ee484b0 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -23,7 +23,7 @@ if ( !defined('ABSPATH') )
comment_post_ID > 0 ): +if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ID > 0 ) : $comment_link = get_comment_link( $comment ); ?>