[wp-trac] [WordPress Trac] #16433: Extend function to optionally include commenter name in comment_reply_link

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 3 06:30:27 UTC 2011


#16433: Extend function to optionally include commenter name in comment_reply_link
---------------------------+-----------------------------
 Reporter:  Elpie          |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  low            |   Milestone:  Future Release
Component:  Accessibility  |     Version:  3.0.4
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+-----------------------------
Changes (by markjaquith):

 * priority:  normal => low
 * type:  defect (bug) => enhancement
 * milestone:  Awaiting Review => Future Release


Comment:

 Like that idea, andrewryno.

 I had to use this nonsense to do it!

 {{{
 function txfx_reply_to_comment_link( $link, $args, $comment ) {
         if ( !empty( $comment->comment_type ) )
                 return '';
         $link = str_replace( '>' . $args['reply_text'] . '<', '>' .
 esc_html( 'Reply to ' . $comment->comment_author ) . ' &rarr;<', $link );
         return $link;
 }

 add_filter( 'comment_reply_link', 'txfx_reply_to_comment_link', 10, 3 );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16433#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list