[wp-trac] Re: [WordPress Trac] #6380: the_excerpt & [gallery]
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 25 07:28:21 GMT 2008
#6380: the_excerpt & [gallery]
----------------------------+-----------------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: Administration | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------------------------------
Changes (by DD32):
* keywords: needs-patch => has-patch
Comment:
Traced it back to wp_trim_excerpt() which fakes a except if need be.
> attachment 6380.diff added.
is one solution, yet slightly ugly.
> attachment 6380.2.diff added.
is another, However, chances breaking HTML tags if it breaks half way
through a html tag with attributes. The balance tags is there incase it
breaks on '<b> 55th-word[...]'
strip_tags() could be run before it trims the word count, that'd help the
chances of breaking html.
Also, Shouldn't the_except work with <!--more--> if it exists in the post?
--
Ticket URL: <http://trac.wordpress.org/ticket/6380#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list