[wp-trac] [WordPress Trac] #11678: wpautop() fails on uppercase closing tags
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 31 11:26:11 UTC 2009
#11678: wpautop() fails on uppercase closing tags
--------------------------+-------------------------------------------------
Reporter: joehoyle | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Template | Version: 2.9
Severity: minor | Keywords: wpautop
--------------------------+-------------------------------------------------
To reproduce, in a post enter:
{{{
<p>Welcome to WordPress. This is your first post. Edit or delete it, then
start blogging!</P>
}}}
View the post (source) and you get:
{{{
<p>Welcome to WordPress. This is your first post. Edit or delete it, then
start blogging!</P></p>
}}}
Because I (incorrectly) entered an uppercase closing </P> tag, wpautop()
thinks there is no closing tag so adds a </p>, which then often renders as
a double <p> tag. Close if this is not a bug, though I thought it may be
good to do some sanitizing or something on uppercase tags.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11678>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list