WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19855, comment 7


Ignore:
Timestamp:
03/02/12 21:56:26 (2 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19855, comment 7

    initial v1  
    99 
    1010To make that possible can split post_content in chunks each containing only one <pre> tag, then replace `\n` with a placeholder using greedy regex and put post_content back together. 
     11 
     12Did some performance testing and in all cases the patched wpautop() is quite faster. That's not a big improvement as relatively very small number of posts have <pre> tags in the content, but still speeds things up a little.