Nested blockquotes unallowed Re: [wp-hackers] Re: WP issues
Jamie Holly
hovercrafter at earthlink.net
Thu May 31 20:56:12 GMT 2007
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
> bounces at lists.automattic.com] On Behalf Of Lloyd Budd
> Sent: Thursday, May 31, 2007 4:03 PM
> To: wp-hackers at lists.automattic.com
> Subject: Nested blockquotes unallowed Re: [wp-hackers] Re: WP issues
>
> On 5/31/07, Geoffrey Sneddon <foolistbar at googlemail.com> wrote:
> >
> > On 31 May 2007, at 19:55, Geoffrey Sneddon wrote:
> >
> > > b) <blockquote> elements cannot be nested within one another
> > > [TICKET1170]. This is marked as closed, although I just recreated
> > > it on both 2.2 and 2.3. This bug has been opened for over _TWO
> > > YEARS WITH PATCHES AVAILABLE_!
> >
> > . and the ticket has been closed _AGAIN_. Just because you can't
> > reproduce a bug doesn't mean it doesn't exist. I've just recreated it
> > again. It most certainly exists here.
>
> Would you please respond with how to reproduce it then?
>
> [TICKET1170]: http://trac.wordpress.org/ticket/1170
>
Thanks! I was just getting ready to search for that ticket. It still exists
in 2.2. Basically if you have a post that contains nested quotes it will
remove the nesting once it runs through balanceTags. For example this:
--------
Hey Now
<blockquote>Your
<blockquote>An</blockquote>
All</blockquote>
Star
--------
Running through balanceTags changes to this:
--------
<p>Hey Now</p>
<blockquote><p>Your</p>
</blockquote>
<blockquote><p>An</p>
</blockquote>
<p>All</p>
<p>Star</p>
--------
I manually applied the patch attached to the ticket to 2.2 and it did fix
it.
The problem occurs when saving a post with "WordPress should correct
invalidly nested XHTML automatically" checked. Since the content goes
through the balanceTags filter on content_save_pre it only applies at
save/publish time.
Jamie Holly
http://www.intoxination.net
More information about the wp-hackers
mailing list