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
This commit is contained in:
Rachel Baker 2016-03-10 21:17:57 +00:00
parent 4b898888a6
commit 55cda28b18
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if ( !defined('ABSPATH') )
<div id="post-body" class="metabox-holder columns-2">
<div id="post-body-content" class="edit-form-section edit-comment-section">
<?php
if ( $comment->comment_post_ID > 0 ):
if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ID > 0 ) :
$comment_link = get_comment_link( $comment );
?>
<div class="inside">