[wp-trac] Re: [WordPress Trac] #1170: Nested blockquotes unallowed?

WordPress Trac wp-trac at lists.automattic.com
Thu May 31 21:00:20 GMT 2007


#1170: Nested blockquotes unallowed?
-----------------------------+----------------------------------------------
 Reporter:  anonymousbugger  |        Owner:  ryan    
     Type:  defect           |       Status:  reopened
 Priority:  normal           |    Milestone:  2.3     
Component:  General          |      Version:  2.2     
 Severity:  minor            |   Resolution:          
 Keywords:  has-patch        |  
-----------------------------+----------------------------------------------
Changes (by foolswisdom):

  * keywords:  has-patch 2nd-opinion => has-patch
  * status:  closed => reopened
  * version:  1.5 => 2.2
  * resolution:  worksforme =>
  * milestone:  => 2.3

Comment:

 Jamie Holly (intoxination) provided more information to the wp-hackeres
 mailing list. Thank you!

 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.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/1170#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list