From a6e66c0cfc1e357734a64eee58b62de7414d8a5a Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Thu, 10 Mar 2016 21:18:27 +0000 Subject: [PATCH] Comments: On the Edit Comment screen do not show the permalink for unapproved comments. Fixes #36161. Built from https://develop.svn.wordpress.org/trunk@36958 git-svn-id: http://core.svn.wordpress.org/trunk@36926 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-comment.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 5fd308e357..e73ee484b0 100644 --- a/wp-admin/edit-form-comment.php +++ b/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 ); ?>
diff --git a/wp-includes/version.php b/wp-includes/version.php index ad06b5438c..b714aaeeed 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta3-36957'; +$wp_version = '4.5-beta3-36958'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.