From 55cda28b180c7674b3e87c236f6b0d6f1c089a48 Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Thu, 10 Mar 2016 21:17:57 +0000 Subject: [PATCH] Comments: On the Edit Comment screen do not show the permalink for unapproved comments. Fixes #36161. git-svn-id: https://develop.svn.wordpress.org/trunk@36958 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); ?>