[wp-trac] [WordPress Trac] #10376: White space should be collapsed after tags are stripped in wp_trim_excerpt

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 11 13:22:28 UTC 2009


#10376: White space should be collapsed after tags are stripped in wp_trim_excerpt
-------------------------+--------------------------------------------------
 Reporter:  sojweb       |       Owner:                                         
     Type:  enhancement  |      Status:  new                                    
 Priority:  normal       |   Milestone:  2.8.2                                  
Component:  Formatting   |     Version:  2.8.1                                  
 Severity:  normal       |    Keywords:  has-patch, the_excerpt, wp_trim_excerpt
-------------------------+--------------------------------------------------

Comment(by rmccue):

 I agree, trim() would be much simpler and probably more efficient. Make
 sure it's after the strip_tags(), otherwise there could be whitespace in
 the middle being left there.

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


More information about the wp-trac mailing list