[wp-trac] [WordPress Trac] #10569: Allow filtering of reply text with comment context

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 8 13:55:54 UTC 2009


#10569: Allow filtering of reply text with comment context
---------------------------+------------------------------------------------
 Reporter:  aaroncampbell  |       Owner:                         
     Type:  enhancement    |      Status:  new                    
 Priority:  normal         |   Milestone:  2.9                    
Component:  Comments       |     Version:                         
 Severity:  normal         |    Keywords:  has-patch needs-testing
---------------------------+------------------------------------------------
 I know you can specify the reply text for comments, but you can't make
 them specific to each comment such as "`Reply to comment #1234 by Joe`".
 This will let you do that by adding a filter called
 `comment_reply_link_text` to `get_comment_reply_link()` that passes along
 $args, $comment, and $post (just like the existing `comment_reply_link`
 filter).

 I know you COULD do this with some processing on the link, but it would
 require pulling comment and post IDs from the URL and/or onclick, then
 replacing the text in the link itself.  This way would be a lot simpler
 and only adds a single filter.

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


More information about the wp-trac mailing list