[wp-trac] Re: [WordPress Trac] #4477: Unfiltered post titles in Recent Comments widget

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 16 02:01:26 GMT 2007


#4477: Unfiltered post titles in Recent Comments widget
---------------------------------------+------------------------------------
 Reporter:  jhodgdon                   |        Owner:  anonymous
     Type:  defect                     |       Status:  new      
 Priority:  normal                     |    Milestone:  2.2.2    
Component:  General                    |      Version:  2.2      
 Severity:  normal                     |   Resolution:           
 Keywords:  widget, filter, has_patch  |  
---------------------------------------+------------------------------------
Comment (by jhodgdon):

 I'm not sure what you're suggesting, Ryan.

 All over WordPress, the get_the_xyz functions are unfiltered, and the
 the_xyz functions call get_the_xyz, filter, and echo. So I don't think
 adding the filter to get_the_title is probably a good idea, if that is
 what you're suggesting. get_the_title is used in 22 places in the code
 base...

 Or maybe you are saying to use the_title() instead of get_the_title()?
 Unfortunately, the_title does not take the post ID as an argument, so that
 won't work either.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4477#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list