WordPress.org

Make WordPress Core

Ticket #4345: edit-form-comment.php.diff

File edit-form-comment.php.diff, 1.2 KB (added by mgrouchy, 7 years ago)

Correct Patch for edit-form-comment.php(new)

  • edit-form-comment.php

     
    4040        <legend><?php _e('Comment') ?></legend> 
    4141        <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url'); ?> 
    4242</fieldset> 
    43  
    44 <p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" /> 
    45   <input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" /> 
    46 </p> 
    47  
     43<?php 
     44    $post = get_post($comment->comment_post_ID); //get the post 
     45    $post_title = $post->post_title; // and its title 
     46?> 
     47    <div> 
     48        <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> 
     49        <p class="submit"><input type="submit" name="editcomment" id="editcomment" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" /> 
     50        <input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" /> 
     51        </p> 
     52    </div> 
    4853</div> 
    4954 
    5055<div class="wrap">