From 1b8987543c126a947dd6009787f5e92d828032b5 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 20 Dec 2007 20:31:46 +0000 Subject: [PATCH] Add a link to the post a comment is for when editing a comment. Fixes #4345 props mgrouchy, git-svn-id: https://develop.svn.wordpress.org/trunk@6432 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-comment.php | 13 ++++++++++--- wp-admin/wp-admin.css | 5 +++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 9ee24d8184..6425775740 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -42,9 +42,16 @@ addLoadEvent(focusit); comment_content, 'content', 'newcomment_author_url'); ?> -

- -

+comment_post_ID); //get the post + $post_title = $post->post_title; // and its title +?> +
+ +

+ +

+
diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 5ed425ce7c..0db7b9f957 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -1383,4 +1383,9 @@ a.view-link { #pass-strength-result.strong { background-color: #59ef86; border: 1px solid #319f52; +} + +a.view-comment-post-link { + position: absolute; + text-decoration:underline; } \ No newline at end of file