[wp-trac] [WordPress Trac] #8202: Recent Comments: link to view post other than to edit it

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 13 19:09:38 GMT 2008


#8202: Recent Comments: link to view post other than to edit it
----------------------+-----------------------------------------------------
 Reporter:  coolmann  |       Owner:  anonymous                              
     Type:  defect    |      Status:  new                                    
 Priority:  normal    |   Milestone:  2.7                                    
Component:  General   |     Version:  2.7                                    
 Severity:  minor     |    Keywords:  recent comments widget change post view
----------------------+-----------------------------------------------------
 In the Recent Comments widget, I'd like to suggest adding a link to view
 the post related to that comment, along with the one to edit the post
 itself. I'm sorry I'm not able to provide a patch for this, but the file
 to change is dashboard.php, around row 424. The code I'm using on my blog
 adds the following lines:

 429: $comment_post_view_link = '<a href="' . get_permalink(
 $comment->comment_post_ID ) . '">'.__( 'View' ).'</a>';

 469, change in:

 <h4 class="comment-meta"><?php printf( __( 'From %1$s on %2$s (%3$s) %4$s'
 ), '<cite class="comment-author">' . get_comment_author_link() .
 '</cite>', $comment_post_link, $comment_post_view_link, ' <span
 class="approve">' . __( '[Awaiting Moderation]' ) . '</span>' ); ?></h4>

 Thank you,
 coolmann.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8202>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list