[wp-trac] [WordPress Trac] #5829: Make _wp_comment_list_item use 'the_title' filter to format the title

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 12 18:40:53 GMT 2008


#5829: Make _wp_comment_list_item use 'the_title' filter to format the title
----------------------------+-----------------------------------------------
 Reporter:  henrikmelin     |       Owner:  anonymous            
     Type:  enhancement     |      Status:  new                  
 Priority:  normal          |   Milestone:                       
Component:  Administration  |     Version:  2.3.2                
 Severity:  normal          |    Keywords:  2nd-opinion has-patch
----------------------------+-----------------------------------------------
 In the _wp_comment_list_item() function the post title is currently
 formatted using wp_specialchars. Since this has no hook it is not possible
 to change or format the title prior to it being displayed.

 I propose that the standard formatting filter 'the_title' is applied
 instead, using get_the_title($post->ID), making it  accessible to plugins
 (and formatted in the same way it is formatted everywhere else, for
 consistency).

 This is dependent on ticket #5746. This change makes the ID available to
 the 'the_title' filter.

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


More information about the wp-trac mailing list