[wp-trac] [WordPress Trac] #2348: <div>blah<!--more-->blah</div> breaks themes, validation
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 4 11:22:23 UTC 2010
#2348: <div>blah<!--more-->blah</div> breaks themes, validation
-----------------------------------------+----------------------------------
Reporter: skeltoac | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.1
Component: Shortcodes | Version: 2.9.1
Severity: normal | Resolution:
Keywords: bg|has-patch bg|2nd-opinion |
-----------------------------------------+----------------------------------
Comment(by enochfung):
Replying to [comment:4 enochfung]:
> Hello,
>
> This bug is still present in WP 2.9.1.
>
> Example)
> <div>
>
> your post text
> <!--nextpage-->
> more text
>
> </div>
>
> When you call <?php the_content(); ?> the last div is missing.
>
> Temporary fix:
>
> <?php the_content(); ?>
> </div>
>
> Add an extra </div> in your theme files. No guarantees on other tags.
Actually, you cannot add that extra </div> because it will break your
theme on page 2 (page 2 will end up with 2 </div> tags).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/2348#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list