[wp-hackers] White space and the_excerpt
John Blackbourn
johnbillion+wp at gmail.com
Fri Jul 10 13:40:14 UTC 2009
Nice catch Jeff.
2009/7/10 SoJ Web <sojweb at indiana.edu>:
> In case anyone else has happened across this:
>
> I recently ran into a problem with the_excerpt(), where it would just output
> white space. It turned out that the posts it was doing that on had a bunch
> of HTML at the beginning, and when wp_trim_excerpt() ran, it was stripping
> the HTML tags, but leaving the surrounding white space. When it then pulled
> the first 55 words of the post content, it was all white space. To work
> around, I just put in some regex to collapse the white space before the
> excerpt was generated. Fix is here:
> http://core.trac.wordpress.org/ticket/10376
>
>
> -Jeff Johnson
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list