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
This commit is contained in:
parent
8326d04eee
commit
1b8987543c
@ -42,9 +42,16 @@ addLoadEvent(focusit);
|
||||
<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url'); ?>
|
||||
</fieldset>
|
||||
|
||||
<p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />
|
||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" />
|
||||
</p>
|
||||
<?php
|
||||
$post = get_post($comment->comment_post_ID); //get the post
|
||||
$post_title = $post->post_title; // and its title
|
||||
?>
|
||||
<div>
|
||||
<a href="<?php echo get_permalink($comment->comment_post_ID); ?>" class="view-comment-post-link" target="_blank"><?php echo sprintf('%s »',$post_title); ?></a>
|
||||
<p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />
|
||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" />
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user