[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
Fri Jul 10 13:16:47 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:  Future Release
Component:  Formatting   |     Version:  2.8.1         
 Severity:  normal       |    Keywords:  has-patch     
-------------------------+--------------------------------------------------
 I've a minor edit I'd like to propose: When wp_trim_excerpt strips tags
 from the post content, it leaves the white space surrounding those tags,
 and then pulls the first 55 characters, which could be blank. So, for a
 lot of my posts that had a big set of HTML tags at the beginning, the
 excerpt would be empty. The work around is easy: collapse the white space
 (which the browser would do anyway). I hope it seems logical. Diff file
 attached.

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


More information about the wp-trac mailing list