[wp-trac] Re: [WordPress Trac] #3755: wp_title function: filter post title before stripping tags

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 1 17:53:02 GMT 2007


#3755: wp_title function: filter post title before stripping tags
-----------------------------------------------------+----------------------
 Reporter:  jhodgdon                                 |        Owner:  anonymous
     Type:  defect                                   |       Status:  reopened 
 Priority:  normal                                   |    Milestone:  2.2      
Component:  General                                  |      Version:  2.1      
 Severity:  normal                                   |   Resolution:           
 Keywords:  filter, wp_title, strip_tags, has-patch  |  
-----------------------------------------------------+----------------------
Changes (by jhodgdon):

 * cc: jhodgdon (added)
  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 I just noticed that the way the patch was applied here, the function is
 still broken. The current file says ([5619] of general-template.php):

 229             $title = apply_filters('single_post_title', $title);

 230             $title = strip_tags($post->post_title);

 As you can see, the second line overrides the first line. It should be (as
 it was in the original patch):

 229             $title = apply_filters('single_post_title',
 $post->post_title);

 230             $title = strip_tags($title);

 I am submitting a new patch to fix this patch... will attach shortly...
      Jennifer

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


More information about the wp-trac mailing list