| 16 | Then it won't be affected by the other regex. |
| 17 | |
| 18 | Yes, 19855-2.patch still runs the content of <pre> tags through the rest of wpautop() similar to how it works now. The (eventual) problem with 19855.patch is that it still uses the non-greedy match-all `(.*?)` that causes the problem in this ticket. Thinking if we are going to modernize/refactor the exclusion of <pre> tags from wpautop, we could avoid that. |
| 19 | |
| 20 | Tried the approach from wptexturize() with `preg_split('|(</?pre( [^>]*)?>)|', $pee, -1, PREG_SPLIT_DELIM_CAPTURE);`. This seems to work well but the code is more complex. Can add a patch later. |