[wp-trac] Re: [WordPress Trac] #4298: wpautop bugs
WordPress Trac
wp-trac at lists.automattic.com
Tue May 19 22:42:17 GMT 2009
#4298: wpautop bugs
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: Denis-de-Bernardy
Type: defect (bug) | Status: accepted
Priority: low | Milestone: 2.8
Component: Formatting | Version: 2.7
Severity: minor | Keywords: has-patch tested commit
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):
* milestone: Future Release => 2.8
Comment:
doh, wait. I thought this was another ticket.
it's not a wpautop ticket, or rather it is, but it fixes a genuine bug in
it. you don't need a unit test for this one. the stuff in the patch is
done by the latest tinymce already. it's the php version that has a
problem.
it merely turns stuff like:
{{{
<p
class="foo">
}}}
... which gets wrecked by wpautop, into:
{{{
<p class="foo">
}}}
it has been working successfully for over a year on thousands of sites,
and bugs would have been reported long ago if any were present.
the while loop stands for: until there is no open tag (<) followed by a
newline char, turn the newline char into a space.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/4298#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list