Changes between Version 1 and Version 2 of Ticket #19855, comment 14
- Timestamp:
- 03/18/2012 09:53:18 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19855, comment 14
v1 v2 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 stringso 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 placeholder 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.