[wp-trac] [WordPress Trac] #19855: Too much text in <pre> tag causes no output

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 18 21:19:50 UTC 2012


#19855: Too much text in <pre> tag causes no output
--------------------------+------------------------------
 Reporter:  helenyhou     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  1.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by azaozz):

 The 19855-4.patch combines "the best" of 19855.patch and 19855-2.patch. As
 the <pre> tags cannot be nested, there's no need to use regex at all.
 Splitting on the closing tag and then on the opening tag in each substring
 only needs strpos() and substr(). Also uses a dummy `<pre...></pre>` as
 replacement string so the rest of wpautop() can handle it correctly.

 The only thing left seems to be to try and find some old post_content that
 includes <pre> and was created with WP 2.0 - 2.3. Think then there were
 some inconsistencies inside the <pre> tags.

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


More information about the wp-trac mailing list