Make WordPress Core


Ignore:
Timestamp:
12/20/2007 08:31:46 PM (18 years ago)
Author:
westi
Message:

Add a link to the post a comment is for when editing a comment. Fixes #4345 props mgrouchy,

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r6406 r6432  
    4343</fieldset>
    4444
    45 <p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />
    46   <input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" />
    47 </p>
     45<?php
     46    $post = get_post($comment->comment_post_ID); //get the post
     47    $post_title = $post->post_title; // and its title
     48?>
     49    <div>
     50        <a href="<?php echo get_permalink($comment->comment_post_ID); ?>" class="view-comment-post-link" target="_blank"><?php echo sprintf('%s &raquo;',$post_title); ?></a>
     51        <p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />
     52        <input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" />
     53        </p>
     54    </div>
    4855
    4956</div>
Note: See TracChangeset for help on using the changeset viewer.