WordPress.org

Make WordPress Core

Changeset 6432


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

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

Location:
trunk/wp-admin
Files:
2 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>
  • trunk/wp-admin/wp-admin.css

    r6429 r6432  
    13851385    border: 1px solid #319f52;
    13861386}
     1387
     1388a.view-comment-post-link {
     1389    position: absolute;
     1390    text-decoration:underline;
     1391}
Note: See TracChangeset for help on using the changeset viewer.