From 670ec9cfa78b361131987d78b723f5c398048e14 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 May 2021 12:26:58 +0000 Subject: [PATCH] Comments: Include a "View Post" link on the Comments screen for a single post. This makes it easier to view the post on the front end of the site when moderating comments, without having to open the editor first. Props trejder, audrasjb, vladytimy, lukecarbis, ayeshrajans, chaion07, paaljoachim, hareesh-pillai, SergeyBiryukov. Fixes #52353. Built from https://develop.svn.wordpress.org/trunk@50999 git-svn-id: http://core.svn.wordpress.org/trunk@50608 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 12 ++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 253d60b961..38f2bdd80b 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -228,6 +228,18 @@ if ( $post_id ) { %2$s', + get_permalink( $post_id ), + $post_type_object->labels->view_item + ); + } +} + if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { echo ''; printf( diff --git a/wp-includes/version.php b/wp-includes/version.php index a895b941e0..a0148edb0d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50998'; +$wp_version = '5.8-alpha-50999'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.