Changes between Initial Version and Version 1 of Ticket #19855, comment 14
- Timestamp:
- 03/18/2012 09:20:25 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19855, comment 14
initial v1 1 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.1 The 19855-4.patch combines "the best" of the previous three patches. 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. 2 2 3 3 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.