[wp-trac] [WordPress Trac] #6297: Unbalanced tags across more and nextpage tags

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 9 21:02:45 UTC 2012


#6297: Unbalanced tags across more and nextpage tags
--------------------------+------------------------------
 Reporter:  tellyworth    |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  2.5
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by devesine):

 Bringing over patch from #20278:

   The attached patch splits up the text (using a regex patterned after the
 regexes used to split out quicktags in other areas such as
 get_the_content()) runs force_balance_tags against each part, and glues
 them back together.

   This could be done in force_balance_tags instead, but my first thought
 is that force_balance_tags is a lower-level function; since it ignores
 options (use_balanceTags) and has no option to not balance (truism), it
 should ignore other WordPress-specific conceits like quicktags. Among
 other things, there's no expectation that it's always being used for
 content that should respect those quicktags (it's also used on the
 comment_text filter and in get_the_content() after the more and nextpage
 quicktags have been handled).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/6297#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list